1 | <?php |
||
24 | class SetStatement extends Statement |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * The clauses of this statement, in order. |
||
29 | * |
||
30 | * @see Statement::$CLAUSES |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | public static $CLAUSES = array( |
||
35 | 'SET' => array('SET', 3), |
||
36 | ); |
||
37 | |||
38 | /** |
||
39 | * Possible exceptions in SET statment |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | public static $OPTIONS = array( |
||
44 | 'CHARSET' => array(3, 'var'), |
||
45 | 'CHARACTER SET' => array(3, 'var'), |
||
46 | 'NAMES' => array(3, 'var'), |
||
47 | 'PASSWORD' => array(3, 'expr'), |
||
48 | ); |
||
49 | |||
50 | /** |
||
51 | * Options used in current statement |
||
52 | * |
||
53 | * @var OptionsArray[] |
||
54 | */ |
||
55 | public $options; |
||
56 | |||
57 | /** |
||
58 | * The updated values. |
||
59 | * |
||
60 | * @var SetOperation[] |
||
61 | */ |
||
62 | public $set; |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | public function build() |
||
72 | } |
||
73 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: