Skip to content

Commit ac20405

Browse files
committed
add identifier for easier white listing
1 parent 85fdd43 commit ac20405

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)