Merge branch '4.x' into 5.x

This commit is contained in:
Ben Ramsey
2023-01-11 19:45:14 -06:00
4 changed files with 19 additions and 2 deletions
@@ -17,7 +17,7 @@ jobs:
steps:
- name: Auto-Merge
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: ridedott/merge-me-action@v2.10.39
uses: ridedott/merge-me-action@v2.10.42
with:
# This must be used as GitHub Actions token does not support pushing
# to protected branches.
+8
View File
@@ -72,6 +72,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
* Remove dependency on ramsey/collection package.
## 4.7.2 - 2023-01-11
### Fixed
* Amend Psalm assertion syntax on `Uuid::isValid()` to prevent incorrect type
inference ([#486](https://github.com/ramsey/uuid/pull/486)).
## 4.7.1 - 2022-12-31
### Fixed
+1 -1
View File
@@ -456,7 +456,7 @@ class Uuid implements Rfc4122UuidInterface
* @psalm-pure note: changing the internal factory is an edge case not covered by purity invariants,
* but under constant factory setups, this method operates in functionally pure manners
*
* @psalm-assert-if-true non-empty-string $uuid
* @psalm-assert-if-true =non-empty-string $uuid
*/
public static function isValid(string $uuid): bool
{
@@ -32,4 +32,13 @@ final class ValidUuidIsNonEmpty
throw new InvalidArgumentException('Not a UUID');
}
public function givenInvalidInputValueRemainsAString(string $input): string
{
if (Uuid::isValid($input)) {
return 'It Worked!';
}
return $input;
}
}