Skip to content

Commit dc7120d

Browse files
committed
Composer: update allowed version for dependencies
Non-dev: * PHP Console Color has released version 0.3 in May. I've set it to allow both `0.2` as well as `0.3` to prevent conflicts. Packages which use this package which may have the Console Color package explicitly set as a requirement. Dev: * PHP Parallel Lint has released version 1.2.0 in April. * PHP Var dump check has released version 0.4 in April. I've set this one to be a flexible requirement to prevent having to update it on each new version. * PHP_CodeSniffer has moved on a lot since version 1.5, so let's use a more recent one. As it was, installing with PHP Console Color 0.3 was not allowed as Composer treats minors < 1.0 as majors. So updating to that version requires an update to the `composer.json` requirements. > For pre-1.0 versions it also acts with safety in mind and treats `^0.3` as `>=0.3.0 <0.4.0`. Refs: * https://getcomposer.org/doc/articles/versions.md#caret-version-range- * https://github.com/php-parallel-lint/PHP-Console-Color/releases/tag/v0.3 * https://github.com/php-parallel-lint/PHP-Parallel-Lint/releases/tag/v1.2.0 * https://github.com/php-parallel-lint/PHP-Var-Dump-Check/releases/tag/v0.4
1 parent f7a4730 commit dc7120d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"require": {
1717
"php": ">=5.4.0",
1818
"ext-tokenizer": "*",
19-
"php-parallel-lint/php-console-color": "~0.2"
19+
"php-parallel-lint/php-console-color": "^0.2 || ^0.3"
2020
},
2121
"require-dev": {
2222
"phpunit/phpunit": "^4.8.36",
23-
"php-parallel-lint/php-parallel-lint": "~1.0",
24-
"php-parallel-lint/php-var-dump-check": "~0.1",
25-
"squizlabs/php_codesniffer": "~1.5",
26-
"php-parallel-lint/php-code-style": "~1.0"
23+
"php-parallel-lint/php-parallel-lint": "^1.0",
24+
"php-parallel-lint/php-var-dump-check": "0.*",
25+
"squizlabs/php_codesniffer": "^3.5",
26+
"php-parallel-lint/php-code-style": "^1.0"
2727
},
2828
"replace": {
2929
"jakub-onderka/php-console-highlighter": "*"

0 commit comments

Comments
 (0)