mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 06:44:59 +00:00
sa: Fix all issues related to PHP versions and static-analysis.
This commit is contained in:
@@ -20,7 +20,7 @@ use function is_array;
|
||||
|
||||
class PointNormalizer implements DenormalizerInterface
|
||||
{
|
||||
public function denormalize($data, string $type, ?string $format = null, array $context = [])
|
||||
public function denormalize($data, $type, $format = null, array $context = [])
|
||||
{
|
||||
if (!is_array($data)) {
|
||||
throw new InvalidArgumentException('point data is not an array. It should be an array of 2 coordinates.');
|
||||
@@ -33,7 +33,7 @@ class PointNormalizer implements DenormalizerInterface
|
||||
return Point::fromLonLat($data[0], $data[1]);
|
||||
}
|
||||
|
||||
public function supportsDenormalization($data, string $type, ?string $format = null): bool
|
||||
public function supportsDenormalization($data, $type, $format = null): bool
|
||||
{
|
||||
return Point::class === $type;
|
||||
}
|
||||
|
Reference in New Issue
Block a user