1 | <?php |
||
19 | abstract class AbstractInsertBuilder extends AbstractBuilder implements |
||
20 | Clause\InsertColumnsClauseInterface, |
||
21 | Component\TableComponentInterface |
||
22 | { |
||
23 | use Clause\InsertColumnsClauseTrait; |
||
24 | use Component\QueryComponentTrait; |
||
25 | use Component\TableComponentTrait; |
||
26 | |||
27 | /** |
||
28 | * @param mixed $table |
||
29 | * @param array $columns |
||
30 | * |
||
31 | * @return AbstractTable |
||
32 | */ |
||
33 | 3 | public function into($table, array $columns = []) |
|
41 | } |
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.