Skip to content

Commit

Permalink
Merge pull request #7110 from AndrolGenhald/bugfix/stub-parent-class
Browse files Browse the repository at this point in the history
Fix stub parent class not loaded.
  • Loading branch information
orklah committed Jan 22, 2022
2 parents 2d8ef78 + 0c142ee commit c3ad520
Show file tree
Hide file tree
Showing 6 changed files with 346 additions and 265 deletions.
1 change: 1 addition & 0 deletions UPGRADING.md
Expand Up @@ -120,6 +120,7 @@
- [BC] Method `Psalm\Type\Union::isFormerStaticObject()` was renamed to `isStaticObject()`
- [BC] Method `Psalm\Type\Union::hasFormerStaticObject()` was renamed to `hasStaticObject()`
- [BC] Function assertions (from `@psalm-assert Foo $bar`) have been converted from strings to specific `Assertion` objects.
- [BC] Property `Psalm\Storage\ClassLikeStorage::$invalid_dependencies` changed from `array<string>` to `array<string, true>`.

## Removed
- [BC] Property `Psalm\Codebase::$php_major_version` was removed, use
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/ClassLikeAnalyzer.php
Expand Up @@ -336,7 +336,7 @@ public static function checkFullyQualifiedClassLikeName(
return null;
}

foreach ($class_storage->invalid_dependencies as $dependency_class_name) {
foreach ($class_storage->invalid_dependencies as $dependency_class_name => $_) {
// if the implemented/extended class is stubbed, it may not yet have
// been hydrated
if ($codebase->classlike_storage_provider->has($dependency_class_name)) {
Expand Down

0 comments on commit c3ad520

Please sign in to comment.