Automation #4324
automation.yml
on: schedule
automation
/
Generate job matrix
8s
Matrix: automation / qa
Annotations
6 warnings
automation / [PHP8.4][locked]Infection on ubuntu:
src/CaseConverter.php#L51
Escaped Mutant for Mutator "MBString":
@@ @@
private Closure $upper;
public function __construct()
{
- $this->upper = static fn(string $word): string => mb_convert_case($word, MB_CASE_UPPER, 'UTF-8');
+ $this->upper = static fn(string $word): string => strtoupper($word);
$this->lower = static fn(string $word): string => mb_convert_case($word, MB_CASE_LOWER, 'UTF-8');
$this->title = static fn(string $word): string => mb_convert_case($word, MB_CASE_TITLE, 'UTF-8');
}
|
automation / [PHP8.4][locked]Infection on ubuntu:
src/CaseConverter.php#L52
Escaped Mutant for Mutator "MBString":
@@ @@
public function __construct()
{
$this->upper = static fn(string $word): string => mb_convert_case($word, MB_CASE_UPPER, 'UTF-8');
- $this->lower = static fn(string $word): string => mb_convert_case($word, MB_CASE_LOWER, 'UTF-8');
+ $this->lower = static fn(string $word): string => strtolower($word);
$this->title = static fn(string $word): string => mb_convert_case($word, MB_CASE_TITLE, 'UTF-8');
}
/**
|
automation / [PHP8.4][locked]Infection on ubuntu:
src/CaseConverter.php#L223
Escaped Mutant for Mutator "PregMatchRemoveCaret":
@@ @@
*/
private function isUppercaseWord(string $string): bool
{
- return preg_match('#^\p{Lu}+$#u', $string) === 1;
+ return preg_match('#\p{Lu}+$#u', $string) === 1;
}
/**
* @param pure-Closure(string):string $converter
|
automation / [PHP8.4][locked]Infection on ubuntu:
src/CaseConverter.php#L223
Escaped Mutant for Mutator "PregMatchRemoveFlags":
@@ @@
*/
private function isUppercaseWord(string $string): bool
{
- return preg_match('#^\p{Lu}+$#u', $string) === 1;
+ return preg_match('#^\p{Lu}+$#', $string) === 1;
}
/**
* @param pure-Closure(string):string $converter
|
automation / [PHP8.4][locked]Infection on ubuntu:
src/CaseConverter.php#L223
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
*/
private function isUppercaseWord(string $string): bool
{
- return preg_match('#^\p{Lu}+$#u', $string) === 1;
+ return preg_match('#^\p{Lu}+$#u', $string) === 2;
}
/**
* @param pure-Closure(string):string $converter
|
automation / [PHP8.4][locked]Infection on ubuntu:
src/CaseConverter.php#L336
Escaped Mutant for Mutator "FalseValue":
@@ @@
* @var non-empty-string $string
*/
$words = preg_split($pattern, $string, 0, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
- if ($words === false) {
+ if ($words === true) {
throw new FailedToSplitStringException($string . ' | ' . $pattern);
}
/** @return list<string> */
|