We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02ae2eb commit bdae989Copy full SHA for bdae989
1 file changed
composer.json
@@ -22,8 +22,7 @@
22
},
23
"require-dev": {
24
"phpunit/phpunit": "~5.7 || ~9.5",
25
- "squizlabs/php_codesniffer": "~3.6",
26
- "friendsofphp/php-cs-fixer": "^3.75"
+ "squizlabs/php_codesniffer": "~3.6"
27
28
"autoload": {
29
"psr-4": { "Payjp\\" : "lib/" }
@@ -39,7 +38,14 @@
39
38
"phpunit"
40
],
41
"fix": [
+ "@php -r \"if (PHP_VERSION_ID < 70400) { echo 'PHP 7.4 or higher is required. Current version: ' . PHP_VERSION . PHP_EOL; exit(1); }\"",
42
"PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --allow-risky=yes"
43
]
44
+ },
45
+ "config": {
46
+ "platform-check": false
47
48
+ "suggest": {
49
+ "friendsofphp/php-cs-fixer": "Required for the fix command (requires PHP >= 7.4)"
50
}
51
0 commit comments