Skip to content

Commit 2cf90ba

Browse files
svenzikAndreyGrin
andcommitted
Use ^ operator in Composer dependency versions
WE2-1049 Signed-off-by: Sven Mitt <[email protected]> Co-authored-by: AndreyGrin <[email protected]>
1 parent 1fc6155 commit 2cf90ba

File tree

3 files changed

+42
-41
lines changed

3 files changed

+42
-41
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,9 @@ Point your Apache web server Document Root to `/example/public` folder.
401401

402402
# Dependency versioning policy
403403

404-
Starting from version 1.2.0 we adopt a flexible versioning policy for
405-
`phpseclib` and `guzzlehttp`, and specify the dependency version as `x.y.*`.
404+
Starting from version 1.3.0 we adopt a flexible versioning policy for
405+
`phpseclib` and `guzzlehttp`, and specify the dependency version as `^x.y.z`.
406+
This is the [recommended operator for maximum interoperability](https://getcomposer.org/doc/articles/versions.md#caret-version-range-) when writing library code.
406407
This approach allows our library integrators to quickly incorporate security
407408
patches and minor updates from dependencies.
408409

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
}
2727
},
2828
"require": {
29-
"php": ">=8.1",
30-
"phpseclib/phpseclib": "3.0.*",
31-
"guzzlehttp/psr7": "2.6.*",
32-
"psr/log": "^3.0"
29+
"php": "^8.1.0",
30+
"phpseclib/phpseclib": "^3.0.0",
31+
"guzzlehttp/psr7": "^2.6.0",
32+
"psr/log": "^3.0.0"
3333
},
3434
"scripts": {
3535
"fix-php": ["prettier src/**/* --write", "prettier examples/src/* --write"],

composer.lock

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)