1 | <?php |
||
21 | trait MigrationTrait |
||
22 | { |
||
23 | use SchemaBuilderTrait; |
||
24 | |||
25 | /** |
||
26 | * @param string $name |
||
27 | * @param array|Enum|string $enums |
||
28 | * |
||
29 | * @throws db\Exception |
||
30 | */ |
||
31 | public function addEnum(string $name, $enums): void |
||
49 | |||
50 | /** |
||
51 | * @param string $name |
||
52 | * |
||
53 | * @throws db\Exception |
||
54 | */ |
||
55 | public function dropEnum(string $name): void |
||
59 | } |
||
60 |
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: