Skip to content

Commit

Permalink
move dollar sign inside brace for var in LogicException message
Browse files Browse the repository at this point in the history
patter of dollar sign outside brace is deprecated as of php8.2
  • Loading branch information
aautar committed Aug 18, 2024
1 parent e24628a commit a175af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function validate(): array
foreach($ruleIds as $rid) {
$rule = $this->getRule($rid);
if($rule === null) {
throw new \LogicException("Trying to validate against a rule that doesn't exist (${rid})");
throw new \LogicException("Trying to validate against a rule that doesn't exist ({$rid})");
}

// If prior rule check failure for field, short circuit if allowed
Expand Down

0 comments on commit a175af9

Please sign in to comment.