Skip to content

Commit

Permalink
Bleeding edge - set checkDynamicProperties to true
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 21, 2022
1 parent 5fd5935 commit afbe1e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ parameters:
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkDynamicProperties: %featureToggles.bleedingEdge%
checkExplicitMixedMissingReturn: true
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
Expand Down
3 changes: 2 additions & 1 deletion src/Rules/Classes/RequireParentConstructCallRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use PHPStan\Rules\Rule;
use PHPStan\ShouldNotHappenException;
use ReflectionClass;
use function property_exists;
use function sprintf;

class RequireParentConstructCallRule implements Rule
Expand Down Expand Up @@ -79,7 +80,7 @@ public function processNode(Node $node, Scope $scope): array

private function callsParentConstruct(Node $parserNode): bool
{
if (!isset($parserNode->stmts)) {
if (!property_exists($parserNode, 'stmts')) {
return false;
}

Expand Down

0 comments on commit afbe1e3

Please sign in to comment.