Skip to content
Permalink
Browse files

Add specific exception

  • Loading branch information
muglug committed Dec 20, 2019
1 parent e475a18 commit 395cac0e0ba50b7d6e80939136bc31fd4b28f126
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Psalm/Internal/Codebase/Populator.php
@@ -274,6 +274,10 @@ private function populateOverriddenMethods(
= $declaring_class_storages[$declaring_class]
= $this->classlike_storage_provider->get($declaring_class);

if (!isset($declaring_class_storage->overridden_method_ids[$method_name])) {
throw new \UnexpectedValueException('Declaring storage should have ids');
}

if ($candidate_overridden_ids === null) {
$candidate_overridden_ids = $declaring_class_storage->overridden_method_ids[$method_name]
+ [$declaring_method_id => $declaring_method_id];

0 comments on commit 395cac0

Please sign in to comment.
You can’t perform that action at this time.