Skip to content

Commit cb53a79

Browse files
committed
Fix tests
1 parent 81177d1 commit cb53a79

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/Rules/Properties/PropertiesInInterfaceRule.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ public function processNode(Node $node, Scope $scope): array
3030
return [];
3131
}
3232

33-
if (!$this->phpVersion->supportsPropertyHooks() && $node->hasHooks()) {
34-
return [
35-
RuleErrorBuilder::message('Property hooks in interfaces are supported only on PHP 8.4 and later.')
36-
->nonIgnorable()
37-
->identifier('property.unsupportedHooksInInterface')
38-
->build(),
39-
];
40-
}
41-
4233
if (!$this->phpVersion->supportsPropertyHooks()) {
4334
return [
4435
RuleErrorBuilder::message('Interfaces may not include properties.')

tests/PHPStan/Rules/Properties/PropertiesInInterfaceRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testPhp83AndPropertiesInInterface(): void
2929

3030
$this->analyse([__DIR__ . '/data/properties-in-interface.php'], [
3131
[
32-
'Property hooks in interfaces are supported only on PHP 8.4 and later.',
32+
'Interfaces may not include properties.',
3333
7,
3434
],
3535
[

0 commit comments

Comments
 (0)