1 | <?php |
||
11 | class MetadataLoader |
||
12 | { |
||
13 | /** |
||
14 | * @var \PhpParser\Parser |
||
15 | */ |
||
16 | private $parser; |
||
17 | |||
18 | /** |
||
19 | * @var \PhpParser\NodeTraverser |
||
20 | */ |
||
21 | private $traverser; |
||
22 | |||
23 | /** |
||
24 | * @var FileMetadataIntrospectionVisitor |
||
25 | */ |
||
26 | private $introspector; |
||
27 | |||
28 | public function __construct() |
||
35 | |||
36 | /** |
||
37 | * Load file metadata |
||
38 | * |
||
39 | * @param string $arg |
||
40 | * |
||
41 | * @return Metadata\FileMetadata |
||
42 | * |
||
43 | * @throws \RunOpenCode\AbstractBuilder\Exception\RuntimeException |
||
44 | */ |
||
45 | public function load($arg) |
||
71 | } |
||
72 |
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.