Merge pull request #905 from ergebnis/dependabot/composer/ergebnis/ph… #1947
Annotations
9 warnings
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/[email protected]. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
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/Holder.php#L32
Escaped Mutant for Mutator "PregMatchRemoveCaret":
--- Original
+++ New
@@ @@
*/
public static function fromString(string $value) : self
{
- if (1 === \preg_match('/^(\\r\\n|\\n|\\r)/', $value)) {
+ if (1 === \preg_match('/(\\r\\n|\\n|\\r)/', $value)) {
throw InvalidHolder::multiline();
}
$trimmed = \trim($value);
|
Run mutation tests with Xdebug and infection/infection:
src/Template.php#L35
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
*/
public static function fromFile(string $name) : self
{
- if ('' === \trim($name)) {
+ if ('' === $name) {
throw Exception\InvalidFile::emptyFileName();
}
if (!\file_exists($name)) {
|
Run mutation tests with Xdebug and infection/infection:
src/Template.php#L36
Escaped Mutant for Mutator "Throw_":
--- Original
+++ New
@@ @@
public static function fromFile(string $name) : self
{
if ('' === \trim($name)) {
- throw Exception\InvalidFile::emptyFileName();
+ Exception\InvalidFile::emptyFileName();
}
if (!\file_exists($name)) {
throw Exception\InvalidFile::doesNotExist($name);
|
Run mutation tests with Xdebug and infection/infection:
src/Template.php#L40
Escaped Mutant for Mutator "Throw_":
--- Original
+++ New
@@ @@
throw Exception\InvalidFile::emptyFileName();
}
if (!\file_exists($name)) {
- throw Exception\InvalidFile::doesNotExist($name);
+ Exception\InvalidFile::doesNotExist($name);
}
if (!\is_file($name)) {
throw Exception\InvalidFile::doesNotExist($name);
|
Run mutation tests with Xdebug and infection/infection:
src/Template.php#L53
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
throw Exception\InvalidFile::canNotBeRead($name);
}
$contents = \file_get_contents($name);
- if (false === $contents) {
+ if (true === $contents) {
throw Exception\InvalidFile::canNotBeRead($name);
}
return new self($contents);
|
Run mutation tests with Xdebug and infection/infection:
src/Year.php#L30
Escaped Mutant for Mutator "PregMatchRemoveCaret":
--- Original
+++ New
@@ @@
*/
public static function fromString(string $value) : self
{
- if (1 !== \preg_match('/^\\d{4}$/', $value)) {
+ if (1 !== \preg_match('/\\d{4}$/', $value)) {
throw Exception\InvalidYear::fromValue($value);
}
return new self($value);
|
Run mutation tests with Xdebug and infection/infection:
src/Year.php#L30
Escaped Mutant for Mutator "PregMatchRemoveDollar":
--- Original
+++ New
@@ @@
*/
public static function fromString(string $value) : self
{
- if (1 !== \preg_match('/^\\d{4}$/', $value)) {
+ if (1 !== \preg_match('/^\\d{4}/', $value)) {
throw Exception\InvalidYear::fromValue($value);
}
return new self($value);
|
Loading