1 | <?php |
||
26 | trait SerializerTrait |
||
27 | { |
||
28 | use DataTypeCasterTrait; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | * |
||
33 | * @return static |
||
34 | */ |
||
35 | public static function deserialize(ParameterBag $data) |
||
50 | |||
51 | /** |
||
52 | * Build parameters. |
||
53 | * |
||
54 | * @param ReflectionParameter[] $parameters |
||
55 | * @param ParameterBag $data |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | protected static function buildParameters(array $parameters, ParameterBag $data) |
||
68 | |||
69 | /** |
||
70 | * Build value. |
||
71 | * |
||
72 | * @param ReflectionParameter $parameter |
||
73 | * @param ParameterBag $data |
||
74 | * |
||
75 | * @return array|mixed|null |
||
76 | */ |
||
77 | protected static function buildValue(ReflectionParameter $parameter, ParameterBag $data) |
||
91 | |||
92 | /** |
||
93 | * Build object parameter. |
||
94 | * |
||
95 | * @param ReflectionClass $class |
||
96 | * @param mixed $value |
||
97 | * @param string $name |
||
98 | * |
||
99 | * @return mixed|null |
||
100 | */ |
||
101 | protected static function buildObjectParameter(ReflectionClass $class, $value, $name) |
||
127 | |||
128 | /** |
||
129 | * {@inheritdoc} |
||
130 | */ |
||
131 | public function serialize() |
||
152 | |||
153 | /** |
||
154 | * Normalize value. |
||
155 | * |
||
156 | * @param $value |
||
157 | * |
||
158 | * @return array|string |
||
159 | */ |
||
160 | protected function normalize($value) |
||
176 | |||
177 | /** |
||
178 | * @param array $data |
||
179 | * |
||
180 | * @return array |
||
181 | */ |
||
182 | protected function resolveFlat(array $data) |
||
196 | |||
197 | /** |
||
198 | * Check if property is internal use (@internal annotation). |
||
199 | * |
||
200 | * @param ReflectionProperty $property |
||
201 | * |
||
202 | * @return bool |
||
203 | */ |
||
204 | protected function isInternal(ReflectionProperty $property) |
||
208 | } |
||
209 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.