1 | <?php |
||
10 | class FileFilter { |
||
11 | |||
12 | /** |
||
13 | * @var callable[] |
||
14 | */ |
||
15 | private $callback = []; |
||
16 | |||
17 | |||
18 | /** |
||
19 | * @param string $type |
||
20 | * @return $this |
||
21 | */ |
||
22 | public function mimeType($type) { |
||
28 | |||
29 | |||
30 | /** |
||
31 | * @param string|array $regex |
||
32 | * @return $this |
||
33 | */ |
||
34 | public function path($regex) { |
||
49 | |||
50 | |||
51 | /** |
||
52 | * @param string|array $regex |
||
53 | * @return $this |
||
54 | */ |
||
55 | public function name($regex) { |
||
69 | |||
70 | |||
71 | /** |
||
72 | * @param array|string $ext |
||
73 | * @return $this |
||
74 | */ |
||
75 | public function extension($ext) { |
||
81 | |||
82 | |||
83 | /** |
||
84 | * @param array|string $status |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function status($status) { |
||
93 | |||
94 | |||
95 | /** |
||
96 | * @return $this |
||
97 | */ |
||
98 | public function notDeleted() { |
||
108 | |||
109 | |||
110 | /** |
||
111 | * @param File $fileInfo |
||
112 | * @return bool |
||
113 | */ |
||
114 | public function isValid(File $fileInfo) { |
||
124 | |||
125 | } |
It seems like you are assigning to a variable which was imported through a
use
statement which was not imported by reference.For clarity, we suggest to use a different name or import by reference depending on whether you would like to have the change visibile in outer-scope.
Change not visible in outer-scope
Change visible in outer-scope