Skip to content

Commit 2756613

Browse files
committed
composer: use caret instead of tilde for semver
Composer deviates from how npm handles semver for tilde constraints, treating `~m.n` the same as `^m.n`. Let’s switch to the latter, as it is less confusing for people switching between languages and also what `composer require` defaults to these days. https://jubianchi.github.io/semver-check/#/constraint/~3.0 https://getcomposer.org/doc/articles/versions.md#next-significant-release-operators composer/composer#5396 While at it, also sort the packages.
1 parent a7996ba commit 2756613

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
],
1313
"require": {
1414
"php": ">=7.1",
15-
"nette/forms": "~3.0",
16-
"nette/utils": "~3.0",
17-
"latte/latte": "~2.5"
15+
"latte/latte": "^2.5",
16+
"nette/forms": "^3.0",
17+
"nette/utils": "^3.0"
1818
},
1919
"require-dev": {
20-
"nette/application": "~3.0",
21-
"nette/bootstrap": "~3.0",
22-
"nette/di": "~3.0",
23-
"nette/robot-loader": "~3.0",
24-
"phpstan/phpstan-nette": "0.12.21",
20+
"nette/application": "^3.0",
21+
"nette/bootstrap": "^3.0",
22+
"nette/di": "^3.0",
23+
"nette/robot-loader": "^3.0",
2524
"phpstan/phpstan": "0.12.99",
26-
"tracy/tracy": "~2.5"
25+
"phpstan/phpstan-nette": "0.12.21",
26+
"tracy/tracy": "^2.5"
2727
},
2828
"extra": {
2929
"branch-alias": {

0 commit comments

Comments
 (0)