Skip to content

Commit

Permalink
Don't use Chop method
Browse files Browse the repository at this point in the history
  • Loading branch information
undjike committed Jul 3, 2024
1 parent 4518e79 commit 57e18a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/CallPropertyHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function execute(CompileContext $context, Component $component, array $ar
$matchingProperty = Arr::first($hookedProperties, fn ($key) => str($this->propertyName)->is("$key*"));

if ($matchingProperty) {
$additionalArgument = str($this->propertyName)->after($matchingProperty)->chopStart('.')->value();
$additionalArgument = str($this->propertyName)->after($matchingProperty)->trim('.')->value();

$this->propertyName = $matchingProperty;

Expand Down

0 comments on commit 57e18a3

Please sign in to comment.