@@ -16,5 +16,5 @@ |
||
| 16 | 16 | * @return mixed |
| 17 | 17 | * @throws ValueNotUnserializable |
| 18 | 18 | */ |
| 19 | - public function tryToUnserializeValue(string $objectClassName, $serializedValue); |
|
| 19 | + public function tryToUnserializeValue(string $objectClassName, $serializedValue); |
|
| 20 | 20 | } |
| 21 | 21 | \ No newline at end of file |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function convert($anything) |
| 26 | 26 | { |
| 27 | 27 | if (is_array($anything)) { |
| 28 | - return array_map(function ($item) { |
|
| 28 | + return array_map(function($item) { |
|
| 29 | 29 | return $this->convert($item); |
| 30 | 30 | }, $anything); |
| 31 | 31 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | abstract class LocalAdapterLocator implements ObjectUnserializer |
| 13 | 13 | { |
| 14 | - protected function locateUnserializerForClass(string $className, $serializedValue):?ObjectUnserializer |
|
| 14 | + protected function locateUnserializerForClass(string $className, $serializedValue): ?ObjectUnserializer |
|
| 15 | 15 | { |
| 16 | 16 | $hydratorName = $this->getNamespace() . '\\' . $className . '\\From' . ucfirst($this->getNameFromSerializedValue($serializedValue)); |
| 17 | 17 | |
@@ -160,6 +160,11 @@ discard block |
||
| 160 | 160 | return ltrim($this->resolveShortClassName($shortType, $reflectionClass), '\\'); |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | + /** |
|
| 164 | + * @param string $shortName |
|
| 165 | + * |
|
| 166 | + * @return string |
|
| 167 | + */ |
|
| 163 | 168 | private function resolveShortClassName($shortName, \ReflectionClass $contextClass) |
| 164 | 169 | { |
| 165 | 170 | $className = (new FqnResolver())->resolveShortClassName($shortName, $contextClass); |
@@ -238,7 +243,7 @@ discard block |
||
| 238 | 243 | } |
| 239 | 244 | |
| 240 | 245 | /** |
| 241 | - * @param $shortType |
|
| 246 | + * @param string $shortType |
|
| 242 | 247 | * @return bool |
| 243 | 248 | */ |
| 244 | 249 | private function isScalar($shortType): bool |