1 | <?php |
||
11 | class NamespaceFieldKey extends RecursiveTransform |
||
12 | { |
||
13 | protected $keys = ['key', 'field']; |
||
14 | |||
15 | /** |
||
16 | * @param \StoutLogic\AcfBuilder\NamedBuilder $builder |
||
17 | */ |
||
18 | public function __construct(\StoutLogic\AcfBuilder\NamedBuilder $builder) |
||
22 | |||
23 | /** |
||
24 | * @return \StoutLogic\AcfBuilder\NamedBuilder |
||
25 | */ |
||
26 | public function getBuilder() |
||
30 | |||
31 | /** |
||
32 | * @param string $value Key |
||
33 | * @return string Namedspaced key |
||
34 | */ |
||
35 | public function transformValue($value) |
||
47 | } |
||
48 |
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: