Skip to content

Commit

Permalink
fixup! fix: Phpunit error
Browse files Browse the repository at this point in the history
  • Loading branch information
jrenggli committed Sep 26, 2024
1 parent 67c57df commit e61762a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/MarkerCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getType(): string

public function add(Marker $marker): void
{
$this[$marker->key] = $marker;
$this[$marker->getMarkerWithBrackets()] = $marker;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Classes/Service/VariablesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function replaceMarkersInText(string &$text): void
}

// Assign a cache key associated with the marker
$this->cacheTags->add(CacheKeyUtility::getCacheKey($marker->key));
$this->cacheTags->add(CacheKeyUtility::getCacheKey($marker->getMarkerWithBrackets()));
$this->usedMarkerKeys[] = $marker->key;
$text = $newContent;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ class ImplementingInterface implements MarkersProcessorInterface
{
public function postProcessMarkers(MarkerCollection $markers): void
{
$markers['{{MARKER1}}']['replacement'] = 'Modified by hook';
$markers->get('{{MARKER1}}')->replacement = 'Modified by hook';
}
}

0 comments on commit e61762a

Please sign in to comment.