Skip to content

Commit b626154

Browse files
committed
Remove unused.
1 parent 56dc6cd commit b626154

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+32
-3411
lines changed

composer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@
2121
}
2222
},
2323
"require": {
24-
"symfony/serializer": "^5.2"
24+
"php": ">=7.4",
25+
"symfony/serializer": "^5.2|^6.0"
2526
},
2627
"extra": {
2728
"laminas": {
2829
"config-provider": "Zfegg\\ApiSerializerExt\\ConfigProvider"
2930
}
31+
},
32+
"require-dev": {
33+
"phpunit/phpunit": "^9.5"
3034
}
31-
}
35+
}

phpunit.xml.dist

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
5-
colors="true">
6-
<testsuites>
7-
<testsuite name="App\\Tests">
8-
<directory>./test</directory>
9-
</testsuite>
10-
</testsuites>
11-
12-
<filter>
13-
<whitelist>
14-
<directory suffix=".php">./src</directory>
15-
</whitelist>
16-
</filter>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="App\\Tests">
10+
<directory>./test</directory>
11+
</testsuite>
12+
</testsuites>
1713
</phpunit>

src/Basic/ArrayNormalizer.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ final class ArrayNormalizer implements NormalizerInterface, SerializerAwareInter
2424
AbstractNormalizer::IGNORED_ATTRIBUTES => [],
2525
];
2626

27-
/**
28-
* @var NameConverterInterface|null
29-
*/
30-
private $nameConverter;
27+
private ?NameConverterInterface $nameConverter;
3128

3229
public function __construct(NameConverterInterface $nameConverter = null, array $defaultContext = [])
3330
{

src/Basic/CollectionNormalizer.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
11
<?php
22

3-
/*
4-
* This file is part of the API Platform project.
5-
*
6-
* (c) Kévin Dunglas <[email protected]>
7-
*
8-
* For the full copyright and license information, please view the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
123
declare(strict_types=1);
134

145
namespace Zfegg\ApiSerializerExt\Basic;
156

167
use Zfegg\ApiSerializerExt\Serializer\AbstractCollectionNormalizer;
178
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
189

19-
/**
20-
* Normalizes collections in the JSON API format.
21-
*
22-
* @author Kevin Dunglas <[email protected]>
23-
* @author Hamza Amrouche <[email protected]>
24-
* @author Baptiste Meyer <[email protected]>
25-
*/
2610
final class CollectionNormalizer extends AbstractCollectionNormalizer
2711
{
2812
public const FORMAT = 'json';

src/Basic/ItemNormalizer.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/Hal/EntrypointNormalizer.php

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/Hal/ItemNormalizer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
namespace Zfegg\ApiSerializerExt\Hal;
1515

1616
use Zfegg\ApiSerializerExt\Serializer\AbstractItemNormalizer;
17-
use Zfegg\ApiSerializerExt\Serializer\CacheKeyTrait;
18-
use Zfegg\ApiSerializerExt\Serializer\ContextTrait;
1917
use Zfegg\ApiSerializerExt\Util\ClassInfoTrait;
2018
use Symfony\Component\Serializer\Exception\LogicException;
2119
use Symfony\Component\Serializer\Exception\UnexpectedValueException;

src/Hal/ObjectNormalizer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
namespace Zfegg\ApiSerializerExt\Hal;
1515

16-
use Zfegg\ApiSerializerExt\Api\IriConverterInterface;
1716
use Symfony\Component\Serializer\Exception\LogicException;
1817
use Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface;
1918
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
@@ -30,7 +29,7 @@ final class ObjectNormalizer implements NormalizerInterface, DenormalizerInterfa
3029
private $decorated;
3130
private $iriConverter;
3231

33-
public function __construct(NormalizerInterface $decorated, IriConverterInterface $iriConverter)
32+
public function __construct(NormalizerInterface $decorated, $iriConverter)
3433
{
3534
$this->decorated = $decorated;
3635
$this->iriConverter = $iriConverter;

src/Hydra/CollectionFiltersNormalizer.php

Lines changed: 0 additions & 156 deletions
This file was deleted.

0 commit comments

Comments
 (0)