1 | <?php |
||
13 | class Exporter |
||
14 | { |
||
15 | use Messenger; |
||
16 | |||
17 | /** @var \App\Http\Kernel */ |
||
18 | protected $kernel; |
||
19 | |||
20 | /** @var \Illuminate\Contracts\Filesystem\Filesystem */ |
||
21 | protected $filesystem; |
||
22 | |||
23 | /** @var string[] */ |
||
24 | protected $paths = []; |
||
25 | |||
26 | /** @var string[] */ |
||
27 | protected $include = []; |
||
28 | |||
29 | /** @var string[] */ |
||
30 | protected $exclude = []; |
||
31 | |||
32 | /** @var \Illuminate\Console\Command */ |
||
33 | protected $cli; |
||
34 | |||
35 | public function __construct(Kernel $kernel, Filesystem $filesystem) |
||
36 | { |
||
37 | $this->kernel = $kernel; |
||
38 | $this->filesystem = $filesystem; |
||
39 | } |
||
40 | |||
41 | public function paths(array $paths): Exporter |
||
42 | { |
||
43 | $this->paths = array_merge($this->paths, $paths); |
||
|
|||
44 | |||
45 | return $this; |
||
46 | } |
||
47 | |||
48 | public function include(array $include): Exporter |
||
49 | { |
||
50 | $this->include = array_merge($this->include, $include); |
||
51 | |||
52 | return $this; |
||
53 | } |
||
54 | |||
55 | public function exclude(array $exclude): Exporter |
||
61 | |||
62 | public function export(): void |
||
68 | |||
69 | protected function exportPaths(): void |
||
70 | { |
||
71 | $this->cli->comment("Exporting paths..."); |
||
94 | |||
95 | protected function exportIncludedFiles(): void |
||
107 | |||
108 | protected function exportIncludedFile(string $source, string $target): void |
||
118 | |||
119 | protected function exportIncludedDirectory(string $source, string $target): void |
||
134 | |||
135 | protected function excludes(string $source): bool |
||
145 | |||
146 | public function setCli(Command $cli) |
||
150 | } |
||
151 |
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..