Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fix undefined local variable in CalcFunction::parse() #617

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Fixed

- Fix undefined local variable in `CalcFunction::parse()` (#593)

## 8.5.1

### Fixed
Expand Down
5 changes: 0 additions & 5 deletions config/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ parameters:
count: 2
path: ../src/RuleSet/DeclarationBlock.php

-
message: "#^Variable \\$oVal might not be defined\\.$#"
count: 1
path: ../src/Value/CalcFunction.php

2 changes: 1 addition & 1 deletion src/Value/CalcFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function parse(ParserState $oParserState, $bIgnoreCase = false)
sprintf(
'Next token was expected to be an operand of type %s. Instead "%s" was found.',
implode(', ', $aOperators),
$oVal
$oParserState->peek()
),
'',
'custom',
Expand Down