Skip to content

Commit 06e4160

Browse files
committed
build: use composer patches in phpunit bin
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 89b4183 commit 06e4160

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

vendor-bin/phpunit/composer.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,22 @@
33
"donatj/mock-webserver": "^2.7",
44
"mikey179/vfsstream": "dev-master",
55
"byjg/swagger-test": "5.0.x-dev",
6+
"cweagans/composer-patches": "^2.0",
67
"guzzlehttp/psr7": "^2.4",
78
"symfony/yaml": "7.4.x-dev",
89
"smalot/pdfparser": "dev-master",
910
"phpunit/phpunit": "10.5.x-dev"
1011
},
1112
"minimum-stability": "dev",
12-
"scripts": {
13-
"post-install-cmd": [
14-
"(grep -q '?array $query = null' vendor/byjg/swagger-test/src/AbstractRequester.php && grep -q 'array|string|null $requestBody = null' vendor/byjg/swagger-test/src/ApiTestCase.php && grep -q '?string $exceptionMessage = null' vendor/byjg/swagger-test/src/ApiTestCase.php && grep -q '?Throwable $previous = null' vendor/byjg/swagger-test/src/Exception/BaseException.php) || patch -p1 -d vendor/byjg/swagger-test < ../../.patches/byjg-swagger-test-php84-implicit-nullable.diff"
15-
],
16-
"post-update-cmd": [
17-
"(grep -q '?array $query = null' vendor/byjg/swagger-test/src/AbstractRequester.php && grep -q 'array|string|null $requestBody = null' vendor/byjg/swagger-test/src/ApiTestCase.php && grep -q '?string $exceptionMessage = null' vendor/byjg/swagger-test/src/ApiTestCase.php && grep -q '?Throwable $previous = null' vendor/byjg/swagger-test/src/Exception/BaseException.php) || patch -p1 -d vendor/byjg/swagger-test < ../../.patches/byjg-swagger-test-php84-implicit-nullable.diff"
18-
]
19-
},
2013
"config": {
14+
"allow-plugins": {
15+
"cweagans/composer-patches": true
16+
},
2117
"platform": {
2218
"php": "8.2"
2319
}
20+
},
21+
"extra": {
22+
"patches-file": "patches.json"
2423
}
2524
}

0 commit comments

Comments
 (0)