Skip to content

chore: use type-info:^7.3 #7185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Doctrine/Common/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"doctrine/orm": "^2.17 || ^3.0",
"phpspec/prophecy-phpunit": "^2.2",
"phpunit/phpunit": "11.5.x-dev",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"conflict": {
"doctrine/persistence": "<1.3"
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Odm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"api-platform/state": "^4.1.11",
"doctrine/mongodb-odm": "^2.10",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"require-dev": {
"doctrine/doctrine-bundle": "^2.11",
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Orm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"symfony/framework-bundle": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1",
"symfony/type-info": "^7.3",
"symfony/uid": "^6.4 || ^7.0",
"symfony/validator": "^6.4 || ^7.0",
"symfony/yaml": "^6.4 || ^7.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"symfony/property-access": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1",
"symfony/type-info": "^7.3",
"symfony/uid": "^6.4 || ^7.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQl/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"api-platform/serializer": "^4.1.11",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1",
"symfony/type-info": "^7.3",
"webonyx/graphql-php": "^15.0",
"willdurand/negotiation": "^3.1"
},
Expand All @@ -36,7 +36,7 @@
"twig/twig": "^1.42.3 || ^2.12 || ^3.0",
"symfony/mercure-bundle": "*",
"symfony/routing": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1",
"symfony/type-info": "^7.3",
"phpunit/phpunit": "11.5.x-dev"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Hal/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"api-platform/state": "^4.1.11",
"api-platform/metadata": "^4.1.11",
"api-platform/serializer": "^4.1.11",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -62,7 +62,7 @@
"test": "./vendor/bin/phpunit"
},
"require-dev": {
"symfony/type-info": "v7.3.0-RC1",
"symfony/type-info": "^7.3",
"phpunit/phpunit": "11.5.x-dev"
},
"repositories": [
Expand Down
2 changes: 1 addition & 1 deletion src/HttpCache/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"symfony/dependency-injection": "^6.4 || ^7.0",
"phpspec/prophecy-phpunit": "^2.2",
"symfony/http-client": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1",
"symfony/type-info": "^7.3",
"phpunit/phpunit": "11.5.x-dev"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Hydra/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"api-platform/json-schema": "^4.1",
"api-platform/serializer": "^4.1",
"symfony/web-link": "^6.4 || ^7.1",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"require-dev": {
"api-platform/doctrine-odm": "^4.1",
Expand Down
10 changes: 7 additions & 3 deletions src/JsonApi/Tests/Serializer/ItemNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,16 @@
$resourceClassResolverProphecy = $this->prophesize(ResourceClassResolverInterface::class);
$resourceClassResolverProphecy->isResourceClass(CircularReference::class)->willReturn(true);
$resourceClassResolverProphecy->getResourceClass($circularReferenceEntity, null)->willReturn(CircularReference::class);
$resourceClassResolverProphecy->getResourceClass($circularReferenceEntity, CircularReference::class)->willReturn(CircularReference::class);
$resourceClassResolverProphecy->isResourceClass(Argument::type('string'))->willReturn(true);
$resourceClassResolverProphecy->getResourceClass(null, CircularReference::class)->willReturn(CircularReference::class);

Check warning on line 136 in src/JsonApi/Tests/Serializer/ItemNormalizerTest.php

View check run for this annotation

Codecov / codecov/patch

src/JsonApi/Tests/Serializer/ItemNormalizerTest.php#L136

Added line #L136 was not covered by tests

$resourceMetadataCollectionFactoryProphecy = $this->prophesize(ResourceMetadataCollectionFactoryInterface::class);
$resourceMetadataCollectionFactoryProphecy->create(CircularReference::class)->willReturn(new ResourceMetadataCollection('CircularReference'));

$propertyNameCollectionFactoryProphecy = $this->prophesize(PropertyNameCollectionFactoryInterface::class);
$propertyNameCollectionFactoryProphecy->create(CircularReference::class, [])->willReturn(new PropertyNameCollection());

Check warning on line 142 in src/JsonApi/Tests/Serializer/ItemNormalizerTest.php

View check run for this annotation

Codecov / codecov/patch

src/JsonApi/Tests/Serializer/ItemNormalizerTest.php#L141-L142

Added lines #L141 - L142 were not covered by tests

$normalizer = new ItemNormalizer(
$this->prophesize(PropertyNameCollectionFactoryInterface::class)->reveal(),
$propertyNameCollectionFactoryProphecy->reveal(),

Check warning on line 145 in src/JsonApi/Tests/Serializer/ItemNormalizerTest.php

View check run for this annotation

Codecov / codecov/patch

src/JsonApi/Tests/Serializer/ItemNormalizerTest.php#L145

Added line #L145 was not covered by tests
$this->prophesize(PropertyMetadataFactoryInterface::class)->reveal(),
$iriConverterProphecy->reveal(),
$resourceClassResolverProphecy->reveal(),
Expand All @@ -158,11 +160,13 @@
$normalizer->setCircularReferenceLimit($circularReferenceLimit);

$context = [
'api_empty_resource_as_iri' => true,

Check warning on line 163 in src/JsonApi/Tests/Serializer/ItemNormalizerTest.php

View check run for this annotation

Codecov / codecov/patch

src/JsonApi/Tests/Serializer/ItemNormalizerTest.php#L163

Added line #L163 was not covered by tests
'circular_reference_limit' => [spl_object_hash($circularReferenceEntity) => 2],
'cache_error' => function (): void {},
];
} else {
$context = [
'api_empty_resource_as_iri' => true,

Check warning on line 169 in src/JsonApi/Tests/Serializer/ItemNormalizerTest.php

View check run for this annotation

Codecov / codecov/patch

src/JsonApi/Tests/Serializer/ItemNormalizerTest.php#L169

Added line #L169 was not covered by tests
'circular_reference_limit' => $circularReferenceLimit,
'circular_reference_limit_counters' => [spl_object_hash($circularReferenceEntity) => 2],
'cache_error' => function (): void {},
Expand Down
4 changes: 2 additions & 2 deletions src/JsonApi/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"api-platform/state": "^4.1.11",
"symfony/error-handler": "^6.4 || ^7.0",
"symfony/http-foundation": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"require-dev": {
"phpspec/prophecy": "^1.19",
"phpspec/prophecy-phpunit": "^2.2",
"phpunit/phpunit": "11.5.x-dev",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/JsonLd/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"test": "./vendor/bin/phpunit"
},
"require-dev": {
"symfony/type-info": "v7.3.0-RC1",
"symfony/type-info": "^7.3",
"phpunit/phpunit": "11.5.x-dev"
},
"repositories": [
Expand Down
2 changes: 1 addition & 1 deletion src/JsonSchema/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"symfony/console": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1",
"symfony/type-info": "^7.3",
"symfony/uid": "^6.4 || ^7.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"illuminate/routing": "^11.0 || ^12.0",
"illuminate/support": "^11.0 || ^12.0",
"illuminate/container": "^11.0 || ^12.0",
"symfony/type-info": "^7.2 || v7.3.0-RC1",
"symfony/type-info": "^7.2",
"symfony/web-link": "^6.4 || ^7.1",
"willdurand/negotiation": "^3.1",
"phpstan/phpdoc-parser": "^1.29 || ^2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Metadata/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"psr/log": "^1.0 || ^2.0 || ^3.0",
"symfony/property-info": "^6.4 || ^7.1",
"symfony/string": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"require-dev": {
"api-platform/json-schema": "^4.1",
Expand Down
4 changes: 2 additions & 2 deletions src/OpenApi/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
"symfony/filesystem": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"require-dev": {
"phpspec/prophecy-phpunit": "^2.2",
"phpunit/phpunit": "11.5.x-dev",
"api-platform/doctrine-common": "^4.1",
"api-platform/doctrine-orm": "^4.1",
"api-platform/doctrine-odm": "^4.1",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/RamseyUuid/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"ramsey/uuid": "^4.7",
"ramsey/uuid-doctrine": "^2.0",
"phpunit/phpunit": "11.5.x-dev",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Serializer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"symfony/mercure-bundle": "*",
"symfony/var-dumper": "^6.4 || ^7.0",
"symfony/yaml": "^6.4 || ^7.0",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"suggest": {
"api-platform/doctrine-orm": "To support Doctrine ORM state options.",
Expand Down
2 changes: 1 addition & 1 deletion src/State/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"willdurand/negotiation": "^3.1",
"api-platform/validator": "^4.1",
"api-platform/serializer": "^4.1",
"symfony/type-info": "v7.3.0-RC1"
"symfony/type-info": "^7.3"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading