1 | <?php |
||
29 | class ReplacementStore extends AbstractResource |
||
30 | { |
||
31 | /** |
||
32 | * Basic file interaction logic |
||
33 | */ |
||
34 | use FileTrait; |
||
35 | |||
36 | /** |
||
37 | * Creates new instance of VariableResource |
||
38 | * |
||
39 | * @param \M1\Vars\Vars $vars Instance of the calling Vars |
||
40 | */ |
||
41 | 79 | public function __construct($vars) |
|
45 | |||
46 | /** |
||
47 | * Creates the replacement variable content from a file or array |
||
48 | * |
||
49 | * @param array $replacements The replacements |
||
50 | |||
51 | * @throws \RuntimeException If variable data is not array or a file |
||
52 | * |
||
53 | * @return array The replacement variables |
||
54 | */ |
||
55 | 4 | public function load($replacements) |
|
67 | } |
||
68 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..