Skip to content

Commit 0fa10a6

Browse files
phpstan-botclaude
andcommitted
Remove explanatory comment about preserveConstructorScope in enterPropertyHook
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5b1dabc commit 0fa10a6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Analyser/MutatingScope.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,12 +1574,6 @@ public function enterPropertyHook(
15741574

15751575
$realParameterTypes = $this->getRealParameterTypes($hook);
15761576

1577-
// preserveConstructorScope must be true: it provides $this and
1578-
// PropertyInitializationExpr entries for properties with default values
1579-
// (needed to correctly report isset() on always-initialized properties).
1580-
// For set hooks, we then invalidate initialization state for all
1581-
// properties without a default value, since the hook can run during
1582-
// __construct() when any such property might still be uninitialized.
15831577
$scope = $this->enterFunctionLike(
15841578
new PhpMethodFromParserNodeReflection(
15851579
$this->getClassReflection(),

0 commit comments

Comments
 (0)