Skip to content

Commit b74d4ba

Browse files
committed
ci: symfony 7.3 deprecations
1 parent 84b9679 commit b74d4ba

21 files changed

+114
-52
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ jobs:
321321
- name: Run ${{ matrix.component }} tests
322322
run: |
323323
mkdir -p /tmp/build/logs/phpunit
324-
composer ${{matrix.component}} test --log-junit "/tmp/build/logs/phpunit/junit.xml" ${{ matrix.php.coverage && '--coverage-clover /tmp/build/logs/phpunit/clover.xml' || '' }}
324+
composer ${{matrix.component}} test --log-junit "/tmp/build/logs/phpunit/junit.xml" ${{ matrix.php.coverage && '--coverage-clover /tmp/build/logs/phpunit/clover.xml' || '' }}${{ matrix.php.lowest && ' --ignore-baseline' || '' }}
325325
- name: Upload test artifacts
326326
if: always()
327327
uses: actions/upload-artifact@v4

phpunit.baseline.xml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,33 @@
11
<?xml version="1.0"?>
22
<files version="1">
3-
<file path="vendor/symfony/deprecation-contracts/function.php">
4-
<line number="25" hash="c6af5d66288d0667e424978000f29571e4954b81">
5-
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6-
<issue><![CDATA[Since symfony/validator 7.1: Not passing a value for the "requireTld" option to the Url constraint is deprecated. Its default value will change to "true".]]></issue>
7-
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\PropertyInfoExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\PropertyInfoExtractor::getType()" instead.]]></issue>
8-
</line>
3+
<file path="vendor/symfony/property-info/PropertyInfoExtractor.php">
4+
<line number="83" hash="d6a2647d12ea79c406f5db6388a2918189a91630">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\PropertyInfoExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\PropertyInfoExtractor::getType()" instead.]]></issue>
6+
</line>
7+
</file>
8+
<file path="vendor/symfony/doctrine-bridge/PropertyInfo/DoctrineExtractor.php">
9+
<line number="169" hash="d6a2647d12ea79c406f5db6388a2918189a91630">
10+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getTypes()" method is deprecated, use "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getType()" instead.]]></issue>
11+
</line>
12+
</file>
13+
<file path="vendor/symfony/property-info/Extractor/PhpStanExtractor.php">
14+
<line number="103" hash="d6a2647d12ea79c406f5db6388a2918189a91630">
15+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.]]></issue>
16+
</line>
17+
</file>
18+
<file path="vendor/symfony/property-info/Extractor/PhpDocExtractor.php">
19+
<line number="126" hash="d6a2647d12ea79c406f5db6388a2918189a91630">
20+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.]]></issue>
21+
</line>
22+
</file>
23+
<file path="vendor/symfony/property-info/Extractor/ReflectionExtractor.php">
24+
<line number="163" hash="d6a2647d12ea79c406f5db6388a2918189a91630">
25+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.]]></issue>
26+
</line>
27+
</file>
28+
<file path="vendor/symfony/validator/Constraints/Url.php">
29+
<line number="68" hash="d190c47bc56cc227d124b726a3f2119933543051">
30+
<issue><![CDATA[Since symfony/validator 7.1: Not passing a value for the "requireTld" option to the Url constraint is deprecated. Its default value will change to "true".]]></issue>
31+
</line>
932
</file>
1033
</files>

src/Doctrine/Odm/phpunit.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/contracts/Deprecation/function.php">
4+
<line number="25" hash="c6af5d66288d0667e424978000f29571e4954b81">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/Doctrine/Odm/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<directory>./Tests/</directory>
1111
</testsuite>
1212
</testsuites>
13-
<source>
13+
<source baseline="phpunit.baseline.xml">
1414
<deprecationTrigger>
1515
<function>trigger_deprecation</function>
1616
<method>Doctrine\Deprecations\Deprecation::trigger</method>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/property-info/Type.php">
4+
<line number="14" hash="4ae33c31826c25b82a796a6fec924f56f5dc32ac">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/Elasticsearch/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<directory>./Tests/</directory>
99
</testsuite>
1010
</testsuites>
11-
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" >
11+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" baseline="phpunit.baseline.xml">
1212
<deprecationTrigger>
1313
<function>trigger_deprecation</function>
1414
</deprecationTrigger>

src/GraphQl/phpunit.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/contracts/Deprecation/function.php">
4+
<line number="25" hash="c6af5d66288d0667e424978000f29571e4954b81">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/GraphQl/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<directory>./Tests/</directory>
99
</testsuite>
1010
</testsuites>
11-
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" >
11+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" baseline="phpunit.baseline.xml">
1212
<deprecationTrigger>
1313
<function>trigger_deprecation</function>
1414
</deprecationTrigger>

src/Hydra/phpunit.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/property-info/Type.php">
4+
<line number="14" hash="4ae33c31826c25b82a796a6fec924f56f5dc32ac">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/Hydra/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<directory>./Tests/</directory>
99
</testsuite>
1010
</testsuites>
11-
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" >
11+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" baseline="phpunit.baseline.xml">
1212
<deprecationTrigger>
1313
<function>trigger_deprecation</function>
1414
</deprecationTrigger>

src/JsonApi/phpunit.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/property-info/Type.php">
4+
<line number="14" hash="4ae33c31826c25b82a796a6fec924f56f5dc32ac">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/JsonApi/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</testsuite>
1010
</testsuites>
1111
<coverage/>
12-
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" >
12+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" baseline="phpunit.baseline.xml">
1313
<deprecationTrigger>
1414
<function>trigger_deprecation</function>
1515
</deprecationTrigger>

src/JsonSchema/phpunit.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/property-info/Type.php">
4+
<line number="14" hash="4ae33c31826c25b82a796a6fec924f56f5dc32ac">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/JsonSchema/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<directory>./Tests/</directory>
99
</testsuite>
1010
</testsuites>
11-
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" >
11+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" baseline="phpunit.baseline.xml">
1212
<deprecationTrigger>
1313
<function>trigger_deprecation</function>
1414
</deprecationTrigger>

src/Metadata/phpunit.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/contracts/Deprecation/function.php">
4+
<line number="25" hash="c6af5d66288d0667e424978000f29571e4954b81">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/Metadata/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<directory>./Tests/</directory>
99
</testsuite>
1010
</testsuites>
11-
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false">
11+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" baseline="phpunit.baseline.xml">
1212
<deprecationTrigger>
1313
<function>trigger_deprecation</function>
1414
</deprecationTrigger>

src/OpenApi/phpunit.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/property-info/Type.php">
4+
<line number="14" hash="4ae33c31826c25b82a796a6fec924f56f5dc32ac">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/OpenApi/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<directory>./Tests/</directory>
99
</testsuite>
1010
</testsuites>
11-
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false">
11+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" baseline="phpunit.baseline.xml">
1212
<deprecationTrigger>
1313
<function>trigger_deprecation</function>
1414
</deprecationTrigger>

src/Serializer/Tests/AbstractItemNormalizerTest.php

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -891,18 +891,7 @@ public function testDeserializationPathForNotDenormalizableRelations(): void
891891
$serializerProphecy = $this->prophesize(SerializerInterface::class);
892892
$serializerProphecy->willImplement(DenormalizerInterface::class);
893893

894-
$normalizer = $this->getMockForAbstractClass(AbstractItemNormalizer::class, [
895-
$propertyNameCollectionFactoryProphecy->reveal(),
896-
$propertyMetadataFactoryProphecy->reveal(),
897-
$iriConverterProphecy->reveal(),
898-
$resourceClassResolverProphecy->reveal(),
899-
$propertyAccessorProphecy->reveal(),
900-
null,
901-
null,
902-
[],
903-
null,
904-
null,
905-
]);
894+
$normalizer = new class($propertyNameCollectionFactoryProphecy->reveal(), $propertyMetadataFactoryProphecy->reveal(), $iriConverterProphecy->reveal(), $resourceClassResolverProphecy->reveal(), $propertyAccessorProphecy->reveal(), null, null, [], null, null) extends AbstractItemNormalizer {};
906895
$normalizer->setSerializer($serializerProphecy->reveal());
907896

908897
$errors = [];
@@ -935,18 +924,7 @@ public function testDeserializationPathForNotDenormalizableResource(): void
935924
$serializerProphecy = $this->prophesize(SerializerInterface::class);
936925
$serializerProphecy->willImplement(DenormalizerInterface::class);
937926

938-
$normalizer = $this->getMockForAbstractClass(AbstractItemNormalizer::class, [
939-
$propertyNameCollectionFactoryProphecy->reveal(),
940-
$propertyMetadataFactoryProphecy->reveal(),
941-
$iriConverterProphecy->reveal(),
942-
$resourceClassResolverProphecy->reveal(),
943-
$propertyAccessorProphecy->reveal(),
944-
null,
945-
null,
946-
[],
947-
null,
948-
null,
949-
]);
927+
$normalizer = new class($propertyNameCollectionFactoryProphecy->reveal(), $propertyMetadataFactoryProphecy->reveal(), $iriConverterProphecy->reveal(), $resourceClassResolverProphecy->reveal(), $propertyAccessorProphecy->reveal(), null, null, [], null, null) extends AbstractItemNormalizer {};
950928
$normalizer->setSerializer($serializerProphecy->reveal());
951929

952930
$normalizer->denormalize('wrong IRI', Dummy::class, null, ['not_normalizable_value_exceptions' => []]);
@@ -973,18 +951,7 @@ public function testDeserializationPathForNotFoundResource(): void
973951
$serializerProphecy = $this->prophesize(SerializerInterface::class);
974952
$serializerProphecy->willImplement(DenormalizerInterface::class);
975953

976-
$normalizer = $this->getMockForAbstractClass(AbstractItemNormalizer::class, [
977-
$propertyNameCollectionFactoryProphecy->reveal(),
978-
$propertyMetadataFactoryProphecy->reveal(),
979-
$iriConverterProphecy->reveal(),
980-
$resourceClassResolverProphecy->reveal(),
981-
$propertyAccessorProphecy->reveal(),
982-
null,
983-
null,
984-
[],
985-
null,
986-
null,
987-
]);
954+
$normalizer = new class($propertyNameCollectionFactoryProphecy->reveal(), $propertyMetadataFactoryProphecy->reveal(), $iriConverterProphecy->reveal(), $resourceClassResolverProphecy->reveal(), $propertyAccessorProphecy->reveal(), null, null, [], null, null) extends AbstractItemNormalizer {};
988955
$normalizer->setSerializer($serializerProphecy->reveal());
989956

990957
$normalizer->denormalize('/some-iri', Dummy::class, null, ['not_normalizable_value_exceptions' => []]);

src/Serializer/phpunit.baseline.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<files version="1">
3+
<file path="vendor/symfony/property-info/Type.php">
4+
<line number="14" hash="4ae33c31826c25b82a796a6fec924f56f5dc32ac">
5+
<issue><![CDATA[Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Type" class is deprecated. Use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead.]]></issue>
6+
</line>
7+
</file>
8+
</files>

src/Serializer/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<directory>./Tests/</directory>
99
</testsuite>
1010
</testsuites>
11-
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false">
11+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="false" baseline="phpunit.baseline.xml">
1212
<deprecationTrigger>
1313
<function>trigger_deprecation</function>
1414
</deprecationTrigger>

0 commit comments

Comments
 (0)