composer(deps-dev): Bump phpunit/phpunit from 10.3.3 to 10.3.4 #1430
Annotations
7 warnings
src/Holder.php#L29
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);
|
src/Template.php#L32
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)) {
|
src/Template.php#L33
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);
|
src/Template.php#L37
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);
|
src/Template.php#L50
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);
|
src/Year.php#L27
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);
|
src/Year.php#L27
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);
|
The logs for this run have expired and are no longer available.
Loading