Skip to content

Commit

Permalink
Fix Non-namespaced classes/interfaces/traits should not be referenced…
Browse files Browse the repository at this point in the history
… with use statements #511

See #511 (comment)
  • Loading branch information
mstenta committed Mar 24, 2022
1 parent e9307ea commit 11cc36a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/core/kml/src/Normalizer/KmlNormalizer.php
Expand Up @@ -4,7 +4,6 @@

use Drupal\farm_geo\GeometryWrapper;
use Drupal\geofield\GeoPHP\GeoPHPInterface;
use GeometryCollection;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

Expand Down Expand Up @@ -122,7 +121,7 @@ public function denormalize($data, $type, $format = NULL, array $context = []) {

// Create an empty collection if no geometry was loaded.
if (empty($geometry)) {
$geometry = new GeometryCollection();
$geometry = new \GeometryCollection();
}

// Build properties.
Expand Down

0 comments on commit 11cc36a

Please sign in to comment.