Skip to content

Commit 2e1dba9

Browse files
authored
ci: use sebastian/comparator<5.0 (#6044)
1 parent 196088e commit 2e1dba9

File tree

5 files changed

+178
-152
lines changed

5 files changed

+178
-152
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@
5050
"phpstan/phpstan-doctrine": "^1.0",
5151
"phpstan/phpstan-phpunit": "^1.0",
5252
"phpstan/phpstan-symfony": "^1.0",
53+
"phpunit/phpunit": "^9.5",
5354
"psr/log": "^1.0 || ^2.0 || ^3.0",
5455
"ramsey/uuid": "^3.9.7 || ^4.0",
5556
"ramsey/uuid-doctrine": "^1.4 || ^2.0",
57+
"sebastian/comparator": "<5.0",
5658
"soyuka/contexts": "v3.3.9",
5759
"soyuka/stubs-mongodb": "^1.0",
5860
"symfony/asset": "^6.1 || ^7.0",

src/JsonSchema/composer.json

Lines changed: 65 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,71 @@
11
{
2-
"name": "api-platform/json-schema",
3-
"description": "Generate a JSON Schema from a PHP class",
4-
"type": "library",
5-
"keywords": [
6-
"REST",
7-
"JSON",
8-
"API",
9-
"Json Schema",
10-
"OpenAPI",
11-
"Swagger"
12-
],
13-
"homepage": "https://api-platform.com",
14-
"license": "MIT",
15-
"authors": [
16-
{
17-
"name": "Kévin Dunglas",
18-
"email": "[email protected]",
19-
"homepage": "https://dunglas.fr"
2+
"name": "api-platform/json-schema",
3+
"description": "Generate a JSON Schema from a PHP class",
4+
"type": "library",
5+
"keywords": [
6+
"REST",
7+
"JSON",
8+
"API",
9+
"Json Schema",
10+
"OpenAPI",
11+
"Swagger"
12+
],
13+
"homepage": "https://api-platform.com",
14+
"license": "MIT",
15+
"authors": [
16+
{
17+
"name": "Kévin Dunglas",
18+
"email": "[email protected]",
19+
"homepage": "https://dunglas.fr"
20+
},
21+
{
22+
"name": "API Platform Community",
23+
"homepage": "https://api-platform.com/community/contributors"
24+
}
25+
],
26+
"require": {
27+
"php": ">=8.1",
28+
"api-platform/metadata": "*@dev || ^3.1",
29+
"symfony/console": "^6.2",
30+
"symfony/property-info": "^6.1",
31+
"symfony/serializer": "^6.1",
32+
"symfony/uid": "^6.1",
33+
"sebastian/comparator": "<5.0"
2034
},
21-
{
22-
"name": "API Platform Community",
23-
"homepage": "https://api-platform.com/community/contributors"
24-
}
25-
],
26-
"require": {
27-
"php": ">=8.1",
28-
"api-platform/metadata": "*@dev || ^3.1",
29-
"symfony/console": "^6.2",
30-
"symfony/property-info": "^6.1",
31-
"symfony/serializer": "^6.1",
32-
"symfony/uid": "^6.1"
33-
},
34-
"require-dev": {
35-
"phpspec/prophecy-phpunit": "^2.0",
36-
"symfony/phpunit-bridge": "^6.1"
37-
},
38-
"autoload": {
39-
"psr-4": {
40-
"ApiPlatform\\JsonSchema\\": ""
35+
"require-dev": {
36+
"phpspec/prophecy-phpunit": "^2.0",
37+
"symfony/phpunit-bridge": "^6.1"
4138
},
42-
"exclude-from-classmap": [
43-
"/Tests/"
44-
]
45-
},
46-
"config": {
47-
"preferred-install": {
48-
"*": "dist"
39+
"autoload": {
40+
"psr-4": {
41+
"ApiPlatform\\JsonSchema\\": ""
42+
},
43+
"exclude-from-classmap": [
44+
"/Tests/"
45+
]
46+
},
47+
"config": {
48+
"preferred-install": {
49+
"*": "dist"
50+
},
51+
"sort-packages": true,
52+
"allow-plugins": {
53+
"composer/package-versions-deprecated": true,
54+
"phpstan/extension-installer": true
55+
}
4956
},
50-
"sort-packages": true,
51-
"allow-plugins": {
52-
"composer/package-versions-deprecated": true,
53-
"phpstan/extension-installer": true
54-
}
55-
},
56-
"extra": {
57-
"branch-alias": {
58-
"dev-main": "3.2.x-dev"
57+
"extra": {
58+
"branch-alias": {
59+
"dev-main": "3.2.x-dev"
60+
},
61+
"symfony": {
62+
"require": "^6.1"
63+
}
5964
},
60-
"symfony": {
61-
"require": "^6.1"
62-
}
63-
},
64-
"repositories": [
65-
{
66-
"type": "path",
67-
"url": "../Metadata"
68-
}
69-
]
65+
"repositories": [
66+
{
67+
"type": "path",
68+
"url": "../Metadata"
69+
}
70+
]
7071
}

src/Metadata/composer.json

Lines changed: 85 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,90 @@
11
{
2-
"name": "api-platform/metadata",
3-
"description": "API Resource-oriented metadata attributes and factories",
4-
"type": "library",
5-
"keywords": [
6-
"REST",
7-
"GraphQL",
8-
"API",
9-
"JSON-LD",
10-
"Hydra",
11-
"JSONAPI",
12-
"OpenAPI",
13-
"HAL",
14-
"Swagger"
15-
],
16-
"homepage": "https://api-platform.com",
17-
"license": "MIT",
18-
"authors": [
19-
{
20-
"name": "Kévin Dunglas",
21-
"email": "[email protected]",
22-
"homepage": "https://dunglas.fr"
2+
"name": "api-platform/metadata",
3+
"description": "API Resource-oriented metadata attributes and factories",
4+
"type": "library",
5+
"keywords": [
6+
"REST",
7+
"GraphQL",
8+
"API",
9+
"JSON-LD",
10+
"Hydra",
11+
"JSONAPI",
12+
"OpenAPI",
13+
"HAL",
14+
"Swagger"
15+
],
16+
"homepage": "https://api-platform.com",
17+
"license": "MIT",
18+
"authors": [
19+
{
20+
"name": "Kévin Dunglas",
21+
"email": "[email protected]",
22+
"homepage": "https://dunglas.fr"
23+
},
24+
{
25+
"name": "API Platform Community",
26+
"homepage": "https://api-platform.com/community/contributors"
27+
}
28+
],
29+
"require": {
30+
"php": ">=8.1",
31+
"doctrine/inflector": "^2.0",
32+
"psr/cache": "^3.0",
33+
"psr/log": "^1.0 || ^2.0 || ^3.0",
34+
"symfony/property-info": "^6.1"
2335
},
24-
{
25-
"name": "API Platform Community",
26-
"homepage": "https://api-platform.com/community/contributors"
27-
}
28-
],
29-
"require": {
30-
"php": ">=8.1",
31-
"doctrine/inflector": "^2.0",
32-
"psr/cache": "^3.0",
33-
"psr/log": "^1.0 || ^2.0 || ^3.0",
34-
"symfony/property-info": "^6.1"
35-
},
36-
"require-dev": {
37-
"phpstan/phpdoc-parser": "^1.16",
38-
"phpspec/prophecy-phpunit": "^2.0",
39-
"symfony/phpunit-bridge": "^6.1",
40-
"symfony/routing": "^6.1",
41-
"symfony/yaml": "^6.1",
42-
"symfony/config": "^6.1",
43-
"api-platform/openapi": "*@dev || ^3.1",
44-
"api-platform/json-schema": "*@dev || ^3.1",
45-
"api-platform/state": "*@dev || ^3.1"
46-
},
47-
"suggest": {
48-
"phpstan/phpdoc-parser": "For PHP documentation support.",
49-
"symfony/yaml": "For YAML resource configuration.",
50-
"symfony/config": "For XML resource configuration."
51-
},
52-
"autoload": {
53-
"psr-4": {
54-
"ApiPlatform\\Metadata\\": ""
55-
}
56-
},
57-
"config": {
58-
"preferred-install": {
59-
"*": "dist"
36+
"require-dev": {
37+
"phpstan/phpdoc-parser": "^1.16",
38+
"phpspec/prophecy-phpunit": "^2.0",
39+
"symfony/phpunit-bridge": "^6.1",
40+
"symfony/routing": "^6.1",
41+
"symfony/yaml": "^6.1",
42+
"symfony/config": "^6.1",
43+
"api-platform/openapi": "*@dev || ^3.1",
44+
"api-platform/json-schema": "*@dev || ^3.1",
45+
"api-platform/state": "*@dev || ^3.1",
46+
"sebastian/comparator": "<5.0"
6047
},
61-
"sort-packages": true,
62-
"allow-plugins": {
63-
"composer/package-versions-deprecated": true,
64-
"phpstan/extension-installer": true
65-
}
66-
},
67-
"extra": {
68-
"branch-alias": {
69-
"dev-main": "3.2.x-dev"
48+
"suggest": {
49+
"phpstan/phpdoc-parser": "For PHP documentation support.",
50+
"symfony/yaml": "For YAML resource configuration.",
51+
"symfony/config": "For XML resource configuration."
7052
},
71-
"symfony": {
72-
"require": "^6.1"
73-
}
74-
},
75-
"repositories": [
76-
{
77-
"type": "path",
78-
"url": "../OpenApi"
79-
},
80-
{
81-
"type": "path",
82-
"url": "../JsonSchema"
83-
},
84-
{
85-
"type": "path",
86-
"url": "../State"
87-
}
88-
]
53+
"autoload": {
54+
"psr-4": {
55+
"ApiPlatform\\Metadata\\": ""
56+
}
57+
},
58+
"config": {
59+
"preferred-install": {
60+
"*": "dist"
61+
},
62+
"sort-packages": true,
63+
"allow-plugins": {
64+
"composer/package-versions-deprecated": true,
65+
"phpstan/extension-installer": true
66+
}
67+
},
68+
"extra": {
69+
"branch-alias": {
70+
"dev-main": "3.2.x-dev"
71+
},
72+
"symfony": {
73+
"require": "^6.1"
74+
}
75+
},
76+
"repositories": [
77+
{
78+
"type": "path",
79+
"url": "../OpenApi"
80+
},
81+
{
82+
"type": "path",
83+
"url": "../JsonSchema"
84+
},
85+
{
86+
"type": "path",
87+
"url": "../State"
88+
}
89+
]
8990
}

src/OpenApi/composer.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22
"name": "api-platform/openapi",
33
"description": "Models to build and serialize an OpenAPI specification.",
44
"type": "library",
5-
"keywords": ["REST", "GraphQL", "API", "JSON-LD", "Hydra", "JSONAPI", "OpenAPI", "HAL", "Swagger"],
5+
"keywords": [
6+
"REST",
7+
"GraphQL",
8+
"API",
9+
"JSON-LD",
10+
"Hydra",
11+
"JSONAPI",
12+
"OpenAPI",
13+
"HAL",
14+
"Swagger"
15+
],
616
"homepage": "https://api-platform.com",
717
"license": "MIT",
818
"authors": [
@@ -23,7 +33,8 @@
2333
"api-platform/state": "*@dev || ^3.1",
2434
"symfony/console": "^6.1",
2535
"symfony/property-access": "^6.1",
26-
"symfony/serializer": "^6.1"
36+
"symfony/serializer": "^6.1",
37+
"sebastian/comparator": "<5.0"
2738
},
2839
"require-dev": {
2940
"phpspec/prophecy-phpunit": "^2.0",

src/State/composer.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22
"name": "api-platform/state",
33
"description": "API Platform state interfaces",
44
"type": "library",
5-
"keywords": ["REST", "GraphQL", "API", "JSON-LD", "Hydra", "JSONAPI", "OpenAPI", "HAL", "Swagger"],
5+
"keywords": [
6+
"REST",
7+
"GraphQL",
8+
"API",
9+
"JSON-LD",
10+
"Hydra",
11+
"JSONAPI",
12+
"OpenAPI",
13+
"HAL",
14+
"Swagger"
15+
],
616
"homepage": "https://api-platform.com",
717
"license": "MIT",
818
"authors": [
@@ -21,7 +31,8 @@
2131
},
2232
"require-dev": {
2333
"phpspec/prophecy-phpunit": "^2.0",
24-
"symfony/phpunit-bridge": "^6.1"
34+
"symfony/phpunit-bridge": "^6.1",
35+
"sebastian/comparator": "<5.0"
2536
},
2637
"autoload": {
2738
"psr-4": {

0 commit comments

Comments
 (0)