Skip to content

Commit 280e978

Browse files
committed
Adjust cast and test against PHP 8.5
1 parent 6ff4a84 commit 280e978

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- '8.2'
1414
- '8.3'
1515
- '8.4'
16+
- '8.5'
1617
steps:
1718
- name: Checkout
1819
uses: actions/checkout@v4

src/Transformation/Expression/ExpressionUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,6 @@ protected static function translateIf(array $source): mixed
124124
*/
125125
protected static function isLiteral(string $expression): bool
126126
{
127-
return (boolean)preg_match('/^!.+!$/', $expression);
127+
return (bool)preg_match('/^!.+!$/', $expression);
128128
}
129129
}

src/Transformation/Variable/Variable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function getVariableName(): string
169169
*/
170170
public static function isVariable(string $candidate): bool
171171
{
172-
return (boolean)preg_match('/^\$[a-zA-Z]\w*$/', $candidate);
172+
return (bool)preg_match('/^\$[a-zA-Z]\w*$/', $candidate);
173173
}
174174

175175
/**

0 commit comments

Comments
 (0)