1 | <?php |
||
17 | class ClassLoader |
||
18 | { |
||
19 | /** |
||
20 | * @var \PhpParser\Parser |
||
21 | */ |
||
22 | private $parser; |
||
23 | |||
24 | /** |
||
25 | * @var \PhpParser\NodeTraverser |
||
26 | */ |
||
27 | private $traverser; |
||
28 | |||
29 | /** |
||
30 | * @var ClassIntrospectionVisitor |
||
31 | */ |
||
32 | private $introspector; |
||
33 | |||
34 | /** |
||
35 | * ClassLoader constructor. |
||
36 | */ |
||
37 | public function __construct() |
||
45 | |||
46 | /** |
||
47 | * Load class and build its metadata value object |
||
48 | * |
||
49 | * @param string $class Filename or full qualified class name |
||
50 | * |
||
51 | * @return ClassMetadata |
||
52 | * |
||
53 | * @throws \RunOpenCode\AbstractBuilder\Exception\RuntimeException |
||
54 | * @throws \RunOpenCode\AbstractBuilder\Exception\InvalidArgumentException |
||
55 | */ |
||
56 | public function load($class) |
||
80 | } |
||
81 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.