Skip to content

Commit cb0dd58

Browse files
chore: use type-info:^7.3 (#7185)
1 parent 24a1cf5 commit cb0dd58

31 files changed

+200
-197
lines changed

src/Doctrine/Common/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"doctrine/orm": "^2.17 || ^3.0",
3636
"phpspec/prophecy-phpunit": "^2.2",
3737
"phpunit/phpunit": "11.5.x-dev",
38-
"symfony/type-info": "v7.3.0-RC1"
38+
"symfony/type-info": "^7.3"
3939
},
4040
"conflict": {
4141
"doctrine/persistence": "<1.3"

src/Doctrine/Odm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"api-platform/state": "^4.1.11",
3131
"doctrine/mongodb-odm": "^2.10",
3232
"symfony/property-info": "^6.4 || ^7.1",
33-
"symfony/type-info": "v7.3.0-RC1"
33+
"symfony/type-info": "^7.3"
3434
},
3535
"require-dev": {
3636
"doctrine/doctrine-bundle": "^2.11",

src/Doctrine/Orm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"symfony/framework-bundle": "^6.4 || ^7.0",
4141
"symfony/property-access": "^6.4 || ^7.0",
4242
"symfony/serializer": "^6.4 || ^7.0",
43-
"symfony/type-info": "v7.3.0-RC1",
43+
"symfony/type-info": "^7.3",
4444
"symfony/uid": "^6.4 || ^7.0",
4545
"symfony/validator": "^6.4 || ^7.0",
4646
"symfony/yaml": "^6.4 || ^7.0"

src/Elasticsearch/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"symfony/property-access": "^6.4 || ^7.0",
3434
"symfony/property-info": "^6.4 || ^7.1",
3535
"symfony/serializer": "^6.4 || ^7.0",
36-
"symfony/type-info": "v7.3.0-RC1",
36+
"symfony/type-info": "^7.3",
3737
"symfony/uid": "^6.4 || ^7.0"
3838
},
3939
"require-dev": {

src/GraphQl/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"api-platform/serializer": "^4.1.11",
2727
"symfony/property-info": "^6.4 || ^7.1",
2828
"symfony/serializer": "^6.4 || ^7.0",
29-
"symfony/type-info": "v7.3.0-RC1",
29+
"symfony/type-info": "^7.3",
3030
"webonyx/graphql-php": "^15.0",
3131
"willdurand/negotiation": "^3.1"
3232
},
@@ -36,7 +36,7 @@
3636
"twig/twig": "^1.42.3 || ^2.12 || ^3.0",
3737
"symfony/mercure-bundle": "*",
3838
"symfony/routing": "^6.4 || ^7.0",
39-
"symfony/type-info": "v7.3.0-RC1",
39+
"symfony/type-info": "^7.3",
4040
"phpunit/phpunit": "11.5.x-dev"
4141
},
4242
"autoload": {

src/Hal/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"api-platform/state": "^4.1.11",
2626
"api-platform/metadata": "^4.1.11",
2727
"api-platform/serializer": "^4.1.11",
28-
"symfony/type-info": "v7.3.0-RC1"
28+
"symfony/type-info": "^7.3"
2929
},
3030
"autoload": {
3131
"psr-4": {
@@ -62,7 +62,7 @@
6262
"test": "./vendor/bin/phpunit"
6363
},
6464
"require-dev": {
65-
"symfony/type-info": "v7.3.0-RC1",
65+
"symfony/type-info": "^7.3",
6666
"phpunit/phpunit": "11.5.x-dev"
6767
},
6868
"repositories": [

src/HttpCache/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"symfony/dependency-injection": "^6.4 || ^7.0",
3333
"phpspec/prophecy-phpunit": "^2.2",
3434
"symfony/http-client": "^6.4 || ^7.0",
35-
"symfony/type-info": "v7.3.0-RC1",
35+
"symfony/type-info": "^7.3",
3636
"phpunit/phpunit": "11.5.x-dev"
3737
},
3838
"autoload": {

src/Hydra/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"api-platform/json-schema": "^4.1",
3333
"api-platform/serializer": "^4.1",
3434
"symfony/web-link": "^6.4 || ^7.1",
35-
"symfony/type-info": "v7.3.0-RC1"
35+
"symfony/type-info": "^7.3"
3636
},
3737
"require-dev": {
3838
"api-platform/doctrine-odm": "^4.1",

src/JsonApi/Tests/Serializer/ItemNormalizerTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,16 @@ public function testNormalizeCircularReference(): void
133133
$resourceClassResolverProphecy = $this->prophesize(ResourceClassResolverInterface::class);
134134
$resourceClassResolverProphecy->isResourceClass(CircularReference::class)->willReturn(true);
135135
$resourceClassResolverProphecy->getResourceClass($circularReferenceEntity, null)->willReturn(CircularReference::class);
136-
$resourceClassResolverProphecy->getResourceClass($circularReferenceEntity, CircularReference::class)->willReturn(CircularReference::class);
137-
$resourceClassResolverProphecy->isResourceClass(Argument::type('string'))->willReturn(true);
136+
$resourceClassResolverProphecy->getResourceClass(null, CircularReference::class)->willReturn(CircularReference::class);
138137

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

141+
$propertyNameCollectionFactoryProphecy = $this->prophesize(PropertyNameCollectionFactoryInterface::class);
142+
$propertyNameCollectionFactoryProphecy->create(CircularReference::class, [])->willReturn(new PropertyNameCollection());
143+
142144
$normalizer = new ItemNormalizer(
143-
$this->prophesize(PropertyNameCollectionFactoryInterface::class)->reveal(),
145+
$propertyNameCollectionFactoryProphecy->reveal(),
144146
$this->prophesize(PropertyMetadataFactoryInterface::class)->reveal(),
145147
$iriConverterProphecy->reveal(),
146148
$resourceClassResolverProphecy->reveal(),
@@ -158,11 +160,13 @@ public function testNormalizeCircularReference(): void
158160
$normalizer->setCircularReferenceLimit($circularReferenceLimit);
159161

160162
$context = [
163+
'api_empty_resource_as_iri' => true,
161164
'circular_reference_limit' => [spl_object_hash($circularReferenceEntity) => 2],
162165
'cache_error' => function (): void {},
163166
];
164167
} else {
165168
$context = [
169+
'api_empty_resource_as_iri' => true,
166170
'circular_reference_limit' => $circularReferenceLimit,
167171
'circular_reference_limit_counters' => [spl_object_hash($circularReferenceEntity) => 2],
168172
'cache_error' => function (): void {},

src/JsonApi/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
"api-platform/state": "^4.1.11",
3030
"symfony/error-handler": "^6.4 || ^7.0",
3131
"symfony/http-foundation": "^6.4 || ^7.0",
32-
"symfony/type-info": "v7.3.0-RC1"
32+
"symfony/type-info": "^7.3"
3333
},
3434
"require-dev": {
3535
"phpspec/prophecy": "^1.19",
3636
"phpspec/prophecy-phpunit": "^2.2",
3737
"phpunit/phpunit": "11.5.x-dev",
38-
"symfony/type-info": "v7.3.0-RC1"
38+
"symfony/type-info": "^7.3"
3939
},
4040
"autoload": {
4141
"psr-4": {

src/JsonLd/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"test": "./vendor/bin/phpunit"
6767
},
6868
"require-dev": {
69-
"symfony/type-info": "v7.3.0-RC1",
69+
"symfony/type-info": "^7.3",
7070
"phpunit/phpunit": "11.5.x-dev"
7171
},
7272
"repositories": [

src/JsonSchema/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"symfony/console": "^6.4 || ^7.0",
3030
"symfony/property-info": "^6.4 || ^7.1",
3131
"symfony/serializer": "^6.4 || ^7.0",
32-
"symfony/type-info": "v7.3.0-RC1",
32+
"symfony/type-info": "^7.3",
3333
"symfony/uid": "^6.4 || ^7.0"
3434
},
3535
"require-dev": {

src/Laravel/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"illuminate/routing": "^11.0 || ^12.0",
4848
"illuminate/support": "^11.0 || ^12.0",
4949
"illuminate/container": "^11.0 || ^12.0",
50-
"symfony/type-info": "^7.2 || v7.3.0-RC1",
50+
"symfony/type-info": "^7.2",
5151
"symfony/web-link": "^6.4 || ^7.1",
5252
"willdurand/negotiation": "^3.1",
5353
"phpstan/phpdoc-parser": "^1.29 || ^2.0",

src/Metadata/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"psr/log": "^1.0 || ^2.0 || ^3.0",
3434
"symfony/property-info": "^6.4 || ^7.1",
3535
"symfony/string": "^6.4 || ^7.0",
36-
"symfony/type-info": "v7.3.0-RC1"
36+
"symfony/type-info": "^7.3"
3737
},
3838
"require-dev": {
3939
"api-platform/json-schema": "^4.1",

src/OpenApi/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
"symfony/filesystem": "^6.4 || ^7.0",
3636
"symfony/property-access": "^6.4 || ^7.0",
3737
"symfony/serializer": "^6.4 || ^7.0",
38-
"symfony/type-info": "v7.3.0-RC1"
38+
"symfony/type-info": "^7.3"
3939
},
4040
"require-dev": {
4141
"phpspec/prophecy-phpunit": "^2.2",
4242
"phpunit/phpunit": "11.5.x-dev",
4343
"api-platform/doctrine-common": "^4.1",
4444
"api-platform/doctrine-orm": "^4.1",
4545
"api-platform/doctrine-odm": "^4.1",
46-
"symfony/type-info": "v7.3.0-RC1"
46+
"symfony/type-info": "^7.3"
4747
},
4848
"autoload": {
4949
"psr-4": {

src/RamseyUuid/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"ramsey/uuid": "^4.7",
3232
"ramsey/uuid-doctrine": "^2.0",
3333
"phpunit/phpunit": "11.5.x-dev",
34-
"symfony/type-info": "v7.3.0-RC1"
34+
"symfony/type-info": "^7.3"
3535
},
3636
"autoload": {
3737
"psr-4": {

src/Serializer/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"symfony/mercure-bundle": "*",
4343
"symfony/var-dumper": "^6.4 || ^7.0",
4444
"symfony/yaml": "^6.4 || ^7.0",
45-
"symfony/type-info": "v7.3.0-RC1"
45+
"symfony/type-info": "^7.3"
4646
},
4747
"suggest": {
4848
"api-platform/doctrine-orm": "To support Doctrine ORM state options.",

src/State/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"willdurand/negotiation": "^3.1",
4040
"api-platform/validator": "^4.1",
4141
"api-platform/serializer": "^4.1",
42-
"symfony/type-info": "v7.3.0-RC1"
42+
"symfony/type-info": "^7.3"
4343
},
4444
"autoload": {
4545
"psr-4": {

0 commit comments

Comments
 (0)