Enhancement: Implement Composer\TildeVersionRange
#7
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
integrate.yaml
on: pull_request
Matrix: Backward-Compatibility Analysis
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Annotations
3 errors and 2 warnings
Backward-Compatibility Analysis (8.1, locked)
Class Ergebnis\VersionConstraint\Example has been deleted
|
Backward-Compatibility Analysis (8.1, locked)
Process completed with exit code 3.
|
Mutation Tests (8.1, locked)
Process completed with exit code 1.
|
Mutation Tests (8.1, locked):
src/Composer/TildeVersionRange.php#L32
Escaped Mutant for Mutator "PregMatchRemoveCaret":
--- Original
+++ New
@@ @@
*/
public static function fromString(string $value) : self
{
- if (1 !== \preg_match('/^~(?P<prefix>v)?(?P<major>0|[1-9]\\d*)(\\.(?P<minor>0|[1-9]\\d*)(\\.(?P<patch>0|[1-9]\\d*)(\\.(?P<fourth>0|[1-9]\\d*))?)?)?(-(?P<stability>(alpha|beta|dev|RC|stable)))?$/', $value)) {
+ if (1 !== \preg_match('/~(?P<prefix>v)?(?P<major>0|[1-9]\\d*)(\\.(?P<minor>0|[1-9]\\d*)(\\.(?P<patch>0|[1-9]\\d*)(\\.(?P<fourth>0|[1-9]\\d*))?)?)?(-(?P<stability>(alpha|beta|dev|RC|stable)))?$/', $value)) {
throw Exception\InvalidTildeVersionRange::fromString($value);
}
return new self($value);
|
Mutation Tests (8.1, locked):
src/Composer/TildeVersionRange.php#L32
Escaped Mutant for Mutator "PregMatchRemoveDollar":
--- Original
+++ New
@@ @@
*/
public static function fromString(string $value) : self
{
- if (1 !== \preg_match('/^~(?P<prefix>v)?(?P<major>0|[1-9]\\d*)(\\.(?P<minor>0|[1-9]\\d*)(\\.(?P<patch>0|[1-9]\\d*)(\\.(?P<fourth>0|[1-9]\\d*))?)?)?(-(?P<stability>(alpha|beta|dev|RC|stable)))?$/', $value)) {
+ if (1 !== \preg_match('/^~(?P<prefix>v)?(?P<major>0|[1-9]\\d*)(\\.(?P<minor>0|[1-9]\\d*)(\\.(?P<patch>0|[1-9]\\d*)(\\.(?P<fourth>0|[1-9]\\d*))?)?)?(-(?P<stability>(alpha|beta|dev|RC|stable)))?/', $value)) {
throw Exception\InvalidTildeVersionRange::fromString($value);
}
return new self($value);
|