Skip to content

Commit 0ca8d29

Browse files
authored
Add identifier for easier white listing (#26)
* add identifier for easier white listing * fix php version
1 parent 85fdd43 commit 0ca8d29

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/test-impact.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set up PHP
4242
uses: shivammathur/setup-php@v2
4343
with:
44-
php-version: 8.2
44+
php-version: 8.3
4545
coverage: none
4646
tools: phpstan
4747
env:
@@ -72,7 +72,7 @@ jobs:
7272
- name: Set up PHP
7373
uses: shivammathur/setup-php@v2
7474
with:
75-
php-version: 8.2
75+
php-version: 8.3
7676
coverage: none
7777
tools: phpstan
7878
env:
@@ -103,7 +103,7 @@ jobs:
103103
- name: Set up PHP
104104
uses: shivammathur/setup-php@v2
105105
with:
106-
php-version: 8.2
106+
php-version: 8.3
107107
coverage: none
108108
tools: phpstan
109109
env:

phpstan/Rules/DisallowedConstructs/DisallowedBooleanCastRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function getNodeType(): string
2323
public function processNode(Node $node, Scope $scope): array
2424
{
2525
return [
26-
RuleErrorBuilder::message('Cast to bool is forbidden.')->build(),
26+
RuleErrorBuilder::message('Cast to bool is forbidden.')->identifier('casting.bool.forbidden')->build(),
2727
];
2828
}
2929
}

phpstan/Rules/DisallowedConstructs/DisallowedBooleanConversionRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function processNode(Node $node, Scope $scope): array
3232
return [
3333
RuleErrorBuilder::message(
3434
'Conversion to boolean is forbidden.'
35-
)->build(),
35+
)->identifier('casting.bool.forbidden')->build(),
3636
];
3737
} else {
3838
return [];

0 commit comments

Comments
 (0)