Skip to content

Commit

Permalink
check key exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed May 30, 2023
1 parent 4a24bf2 commit 5def2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/ClassAnalyzer.php
Expand Up @@ -1000,7 +1000,7 @@ private function checkPropertyInitialization(
}

// abstract constructors do not have any code, therefore cannot set any properties either
if ($storage->methods['__construct']->abstract) {
if (isset($storage->methods['__construct']) && $storage->methods['__construct']->abstract) {
return;
}

Expand Down

0 comments on commit 5def2d6

Please sign in to comment.