1 | <?php |
||
13 | class CreateAuthRolesTable extends Migration |
||
14 | { |
||
15 | /* ----------------------------------------------------------------- |
||
16 | | Constructor |
||
17 | | ----------------------------------------------------------------- |
||
18 | */ |
||
19 | |||
20 | /** |
||
21 | * Make a migration instance. |
||
22 | */ |
||
23 | public function __construct() |
||
29 | |||
30 | /* ----------------------------------------------------------------- |
||
31 | | Main Methods |
||
32 | | ----------------------------------------------------------------- |
||
33 | */ |
||
34 | |||
35 | /** |
||
36 | * Run the migrations. |
||
37 | */ |
||
38 | public function up() |
||
52 | } |
||
53 |
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: