| 1 | <?php |
||
| 21 | class RegisterCachePools extends Event |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var PoolInterface[] |
||
| 25 | */ |
||
| 26 | protected $pools = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array $pools |
||
| 30 | * @return $this |
||
| 31 | */ |
||
| 32 | public function setPools(array $pools) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $handle |
||
| 42 | * @param $pool |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function addPool(string $handle, $pool) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return PoolInterface[] |
||
| 53 | */ |
||
| 54 | public function getPools() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param $pool |
||
| 68 | * @return null |
||
| 69 | */ |
||
| 70 | protected function resolvePool($pool) |
||
| 106 | } |
||
| 107 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.