Skip to content

Commit 4e25c3e

Browse files
authored
Update src/Rules/Variables/UnsetRule.php
1 parent 28a1696 commit 4e25c3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Variables/UnsetRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private function canBeUnset(Node $node, Scope $scope): ?IdentifierRuleError
125125
) {
126126
return RuleErrorBuilder::message(
127127
sprintf(
128-
'Cannot unset %s::$%s property which might get hooked in subclass.',
128+
'Cannot unset property %s::$%s because it might have hooks in a subclass.',
129129
$propertyReflection->getDeclaringClass()->getDisplayName(),
130130
$foundPropertyReflection->getName(),
131131
),

0 commit comments

Comments
 (0)