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