kodedphp /
cache-simple
| 1 | <?php |
||
| 2 | /* |
||
| 3 | * This file is part of the Koded package. |
||
| 4 | * |
||
| 5 | * (c) Mihail Binev <[email protected]> |
||
| 6 | * |
||
| 7 | * Please view the LICENSE distributed with this source code |
||
| 8 | * for the full copyright and license information. |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace Koded\Caching\Configuration; |
||
| 12 | |||
| 13 | use Koded\Stdlib\Config; |
||
| 14 | |||
| 15 | abstract class CacheConfiguration extends Config |
||
| 16 | { |
||
| 17 | 564 | public function __construct(array $parameters = []) |
|
| 18 | { |
||
| 19 | 564 | parent::__construct(); |
|
| 20 | 564 | $parameters && $this->import($parameters); |
|
|
0 ignored issues
–
show
|
|||
| 21 | } |
||
| 22 | } |
||
| 23 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.