github-actions(deps): Bump actions/cache from 4.1.2 to 4.2.0 #1958
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L49
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
--- Original
+++ New
@@ @@
/**
* @see https://wiki.php.net/rfc/namespaced_names_as_token
*/
- if (\PHP_VERSION_ID >= 80000 && \defined('T_NAME_QUALIFIED')) {
+ if (\PHP_VERSION_ID > 80000 && \defined('T_NAME_QUALIFIED')) {
/** @var list<int> $namespaceSegmentOrNamespaceTokens */
$namespaceSegmentOrNamespaceTokens = [\T_STRING, \T_NAME_QUALIFIED];
}
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L49
Escaped Mutant for Mutator "GreaterThanOrEqualToNegotiation":
--- Original
+++ New
@@ @@
/**
* @see https://wiki.php.net/rfc/namespaced_names_as_token
*/
- if (\PHP_VERSION_ID >= 80000 && \defined('T_NAME_QUALIFIED')) {
+ if (\PHP_VERSION_ID < 80000 && \defined('T_NAME_QUALIFIED')) {
/** @var list<int> $namespaceSegmentOrNamespaceTokens */
$namespaceSegmentOrNamespaceTokens = [\T_STRING, \T_NAME_QUALIFIED];
}
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L49
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
/**
* @see https://wiki.php.net/rfc/namespaced_names_as_token
*/
- if (\PHP_VERSION_ID >= 80000 && \defined('T_NAME_QUALIFIED')) {
+ if (\PHP_VERSION_ID >= 80000 || \defined('T_NAME_QUALIFIED')) {
/** @var list<int> $namespaceSegmentOrNamespaceTokens */
$namespaceSegmentOrNamespaceTokens = [\T_STRING, \T_NAME_QUALIFIED];
}
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L69
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
--- Original
+++ New
@@ @@
/**
* @see https://wiki.php.net/rfc/enumerations
*/
- if (\PHP_VERSION_ID >= 80100 && \defined('T_ENUM')) {
+ if (\PHP_VERSION_ID > 80100 && \defined('T_ENUM')) {
$classyTokens = [\T_CLASS, \T_ENUM, \T_INTERFACE, \T_TRAIT];
}
for ($index = 0; $index < $count; ++$index) {
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L69
Escaped Mutant for Mutator "GreaterThanOrEqualToNegotiation":
--- Original
+++ New
@@ @@
/**
* @see https://wiki.php.net/rfc/enumerations
*/
- if (\PHP_VERSION_ID >= 80100 && \defined('T_ENUM')) {
+ if (\PHP_VERSION_ID < 80100 && \defined('T_ENUM')) {
$classyTokens = [\T_CLASS, \T_ENUM, \T_INTERFACE, \T_TRAIT];
}
for ($index = 0; $index < $count; ++$index) {
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L69
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
/**
* @see https://wiki.php.net/rfc/enumerations
*/
- if (\PHP_VERSION_ID >= 80100 && \defined('T_ENUM')) {
+ if (\PHP_VERSION_ID >= 80100 || \defined('T_ENUM')) {
$classyTokens = [\T_CLASS, \T_ENUM, \T_INTERFACE, \T_TRAIT];
}
for ($index = 0; $index < $count; ++$index) {
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L88
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
if (\is_array($token) && \T_NAMESPACE === $token[0]) {
$namespaceSegments = [];
// collect namespace segments
- for ($index = self::significantAfter($index, $sequence, $count); $index < $count; ++$index) {
+ for ($index = self::significantAfter($index, $sequence, $count); $index <= $count; ++$index) {
$token = $sequence[$index];
if (\is_array($token) && !\in_array($token[0], $namespaceSegmentOrNamespaceTokens, true)) {
continue;
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L120
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$token = $sequence[$current];
// if significant token before T_CLASS is T_NEW, it's an instantiation of an anonymous class
if (\is_array($token) && \T_NEW === $token[0]) {
- continue;
+ break;
}
}
$index = self::significantAfter($index, $sequence, $count);
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L187
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
throw Exception\ParseError::fromFileNameAndParseError($fileName, $exception);
}
if (0 === \count($constructsFromFile)) {
- continue;
+ break;
}
foreach ($constructsFromFile as $construct) {
$name = $construct->name();
|
Run mutation tests with Xdebug and infection/infection:
src/Constructs.php#L201
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
$constructs[$name] = $construct->definedIn($fileName);
}
}
- \usort($constructs, static function (Construct $a, Construct $b) : int {
- return \strcmp($a->name(), $b->name());
- });
+
$constructsWithMultipleDefinitions = \array_filter($constructs, static function (Construct $construct) : bool {
return 1 < \count($construct->fileNames());
});
|
Loading