@@ 942-965 (lines=24) @@ | ||
939 | continue; |
|
940 | } |
|
941 | ||
942 | foreach ($classlike_storage->used_traits as $used_trait) { |
|
943 | try { |
|
944 | $trait_storage = $this->classlike_storage_provider->get($used_trait); |
|
945 | } catch (\InvalidArgumentException $e) { |
|
946 | continue; |
|
947 | } |
|
948 | ||
949 | if (!$trait_storage->location) { |
|
950 | continue; |
|
951 | } |
|
952 | ||
953 | try { |
|
954 | $included_trait_file_storage = $this->file_storage_provider->get( |
|
955 | $trait_storage->location->file_path |
|
956 | ); |
|
957 | } catch (\InvalidArgumentException $e) { |
|
958 | continue; |
|
959 | } |
|
960 | ||
961 | $storage->declaring_function_ids = array_merge( |
|
962 | $included_trait_file_storage->declaring_function_ids, |
|
963 | $storage->declaring_function_ids |
|
964 | ); |
|
965 | } |
|
966 | ||
967 | $storage->declaring_function_ids = array_merge( |
|
968 | $included_file_storage->declaring_function_ids, |
|
@@ 985-1003 (lines=19) @@ | ||
982 | $required_file_storage->required_by_file_paths += [$file_path_lc => $storage->file_path]; |
|
983 | } |
|
984 | ||
985 | foreach ($storage->required_classes as $required_classlike) { |
|
986 | try { |
|
987 | $classlike_storage = $this->classlike_storage_provider->get($required_classlike); |
|
988 | } catch (\InvalidArgumentException $e) { |
|
989 | continue; |
|
990 | } |
|
991 | ||
992 | if (!$classlike_storage->location) { |
|
993 | continue; |
|
994 | } |
|
995 | ||
996 | try { |
|
997 | $required_file_storage = $this->file_storage_provider->get($classlike_storage->location->file_path); |
|
998 | } catch (\InvalidArgumentException $e) { |
|
999 | continue; |
|
1000 | } |
|
1001 | ||
1002 | $required_file_storage->required_by_file_paths += [$file_path_lc => $storage->file_path]; |
|
1003 | } |
|
1004 | ||
1005 | $storage->populated = true; |
|
1006 | } |