1 | <?php |
||
6 | class StringOrFileList implements \ArrayAccess |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $listOrStringsOrFiles; |
||
13 | |||
14 | public function __construct(array $listOrStringsOrFiles) |
||
36 | |||
37 | public function offsetExists($offset) |
||
41 | |||
42 | public function offsetGet($offset) |
||
51 | |||
52 | public function offsetSet($offset, $value) |
||
56 | |||
57 | public function offsetUnset($offset) |
||
61 | |||
62 | } |
||
63 |
This check looks for calls to
isset(...)
orempty()
on variables that are yet undefined. These calls will always produce the same result and can be removed.This is most likely caused by the renaming of a variable or the removal of a function/method parameter.