Skip to content

Commit 8a15ed7

Browse files
committed
Style fixes
1 parent 0eb6ef2 commit 8a15ed7

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* OpenAPI: Add PHP default values to the documentation (#2386)
1414
* Deprecate using a validation groups generator service not implementing `ApiPlatform\Core\Bridge\Symfony\Validator\ValidationGroupsGeneratorInterface` (#3346)
1515
* Subresources: subresource resourceClass can now be defined as a container parameter in XML and Yaml definitions
16-
* Url Encoded IRIs: Fix IRI url encoding
16+
* IriConverter: Fix IRI url double encoding - may cause breaking change as some characters no longer encoded in output (#3552)
1717

1818
## 2.5.6
1919

src/JsonLd/Serializer/ItemNormalizer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public function normalize($object, $format = null, array $context = [])
7474

7575
$resourceClass = $this->resourceClassResolver->getResourceClass($object, $context['resource_class'] ?? null);
7676
$context = $this->initContext($resourceClass, $context);
77-
7877
$iri = $this->iriConverter->getIriFromItem($object);
7978
$context['iri'] = $iri;
8079
$context['api_normalize'] = true;

tests/Fixtures/TestBundle/Entity/UrlEncodedId.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
namespace ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity;
1515

1616
use ApiPlatform\Core\Annotation\ApiResource;
17-
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Dto\CustomInputDto;
18-
use ApiPlatform\Core\Tests\Fixtures\TestBundle\Dto\CustomOutputDto;
1917
use Doctrine\ORM\Mapping as ORM;
2018

2119
/**
@@ -27,18 +25,16 @@
2725
*
2826
* @ApiResource(
2927
* itemOperations={
30-
* "get"={
31-
* "method"="GET",
32-
* "requirements"={"id"=".+"}
33-
* }
28+
* "get"={
29+
* "method"="GET",
30+
* "requirements"={"id"=".+"}
31+
* }
3432
* }
3533
* )
3634
*/
3735
class UrlEncodedId
3836
{
3937
/**
40-
* @var int The id
41-
*
4238
* @ORM\Column(type="string")
4339
* @ORM\Id
4440
*/

0 commit comments

Comments
 (0)