| 1 | <?php |
||
| 7 | class CachePrefixIsSet implements Check |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The name of the check. |
||
| 11 | * |
||
| 12 | * @param array $config |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | public function name(array $config): string |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Perform the actual verification of this check. |
||
| 22 | * |
||
| 23 | * @param array $config |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | 4 | public function check(array $config): bool |
|
| 38 | |||
| 39 | /** |
||
| 40 | * The error message to display in case the check does not pass. |
||
| 41 | * |
||
| 42 | * @param array $config |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 4 | public function message(array $config): string |
|
| 49 | } |
||
| 50 |
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: