1 | <?php |
||
7 | class Manager |
||
8 | { |
||
9 | /** |
||
10 | * The location of the stubs directory. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $stubs_dir; |
||
15 | |||
16 | /** |
||
17 | * An instance of a parrot file wrapper. |
||
18 | * |
||
19 | * @var Enzyme\Parrot\File |
||
20 | */ |
||
21 | protected $file_dispatch; |
||
22 | |||
23 | /** |
||
24 | * Create a new stub manager. |
||
25 | * |
||
26 | * @param File $file_dispatch A parrot file dispatch wrapper. |
||
27 | */ |
||
28 | public function __construct(File $file_dispatch) |
||
33 | |||
34 | /** |
||
35 | * Get the contents for the provided stub. Will throw an |
||
36 | * \InvalidArgumentException if the stub by the given name does not exist. |
||
37 | * |
||
38 | * @param string $stub |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function get($stub) |
||
54 | |||
55 | /** |
||
56 | * Hydrate the given contents, replacing the given keys with the values |
||
57 | * provided in the associative array. |
||
58 | * |
||
59 | * @param string $contents |
||
60 | * @param array $data |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public function hydrate($contents, array $data) |
||
72 | |||
73 | /** |
||
74 | * Write the given contents out to the specified file. |
||
75 | * |
||
76 | * @param string $contents |
||
77 | * @param string $path |
||
78 | */ |
||
79 | public function writeOut($contents, $path) |
||
83 | } |
||
84 |
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..