| 1 | <?php |
||
| 7 | class ProxyMethodGenerator |
||
| 8 | { |
||
| 9 | private static $template = ' |
||
| 10 | public %s function %s(%s)%s |
||
| 11 | { |
||
| 12 | %s$this->__call("%s", func_get_args()); |
||
| 13 | } |
||
| 14 | '; |
||
| 15 | |||
| 16 | 8 | public static function generateMethodString(\ReflectionMethod $method) |
|
| 48 | |||
| 49 | 2 | protected static function getType(\ReflectionType $type) |
|
| 53 | |||
| 54 | } |
||
| 55 |
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.