Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
idbentley committed Jul 26, 2024
1 parent 53cc408 commit 3c9912b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Serializer/JsonSerializationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
use JMS\Serializer\EventDispatcher\EventSubscriberInterface;
use JMS\Serializer\EventDispatcher\ObjectEvent;
use JMS\Serializer\Exception\RuntimeException;
use \JMS\Serializer\Exception\PropertyMissingException;

Check failure on line 12 in tests/Serializer/JsonSerializationTest.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Use statements should be sorted alphabetically. The first wrong one is JMS\Serializer\Exception\PropertyMissingException.

Check failure on line 12 in tests/Serializer/JsonSerializationTest.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Import statements must not begin with a leading backslash

Check failure on line 12 in tests/Serializer/JsonSerializationTest.php

View workflow job for this annotation

GitHub Actions / Coding Standards (7.4)

Use statement cannot start with a backslash.
use JMS\Serializer\GraphNavigatorInterface;
use JMS\Serializer\Metadata\Driver\TypedPropertiesDriver;
use JMS\Serializer\SerializationContext;
use JMS\Serializer\DeserializationContext;
use JMS\Serializer\SerializationContext;
use JMS\Serializer\Tests\Fixtures\Author;
use JMS\Serializer\Tests\Fixtures\AuthorList;
use JMS\Serializer\Tests\Fixtures\FirstClassMapCollection;
Expand Down Expand Up @@ -431,7 +432,7 @@ public static function getTypeHintedArraysAndStdClass()

public function testDeserializationFailureOnPropertyMissing()
{
self::expectException(\JMS\Serializer\Exception\PropertyMissingException::class);
self::expectException(PropertyMissingException::class);
$this->deserialize(static::getContent('empty_object'), Author::class, DeserializationContext::create()->setRequireAllRequiredProperties(true));
}

Expand Down

0 comments on commit 3c9912b

Please sign in to comment.