Skip to content

PHP 8.5 support

PHP 8.5 support #326

Triggered via pull request December 6, 2025 14:36
@vjikvjik
synchronize #70
php85
Status Success
Total duration 33s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / infection
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
mutation / PHP 8.5-ubuntu-latest
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires vimeo/psalm ^5.26.1 || ^6.8.9 -> satisfiable by vimeo/psalm[5.26.1, 6.8.9, ..., 6.13.1]. - vimeo/psalm 5.26.1 requires php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.5.0) does not satisfy that requirement. - vimeo/psalm[6.8.9, ..., 6.13.1] require php ~8.1.31 || ~8.2.27 || ~8.3.16 || ~8.4.3 -> your php version (8.5.0) does not satisfy that requirement.
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L140
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ } $code .= "\n" . ' /* ' . $messageData['comment'] . ' */'; } - $code .= "\n" . ' '; + $code .= ' '; $code .= var_export($messageId, true); $code .= ' => '; $code .= var_export($messageData['message'], true);
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L140
Escaped Mutant for Mutator "Concat": @@ @@ } $code .= "\n" . ' /* ' . $messageData['comment'] . ' */'; } - $code .= "\n" . ' '; + $code .= ' ' . "\n"; $code .= var_export($messageId, true); $code .= ' => '; $code .= var_export($messageData['message'], true);
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L137
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ if (!is_string($messageData['comment'])) { throw new InvalidArgumentException("Message comment is not a string for ID \"{$messageId}\"."); } - $code .= "\n" . ' /* ' . $messageData['comment'] . ' */'; + $code .= "\n" . ' /* ' . ' */'; } $code .= "\n" . ' '; $code .= var_export($messageId, true);
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L137
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ if (!is_string($messageData['comment'])) { throw new InvalidArgumentException("Message comment is not a string for ID \"{$messageId}\"."); } - $code .= "\n" . ' /* ' . $messageData['comment'] . ' */'; + $code .= ' /* ' . $messageData['comment'] . ' */'; } $code .= "\n" . ' '; $code .= var_export($messageId, true);
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L137
Escaped Mutant for Mutator "Concat": @@ @@ if (!is_string($messageData['comment'])) { throw new InvalidArgumentException("Message comment is not a string for ID \"{$messageId}\"."); } - $code .= "\n" . ' /* ' . $messageData['comment'] . ' */'; + $code .= ' /* ' . "\n" . $messageData['comment'] . ' */'; } $code .= "\n" . ' '; $code .= var_export($messageId, true);
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L72
Escaped Mutant for Mutator "IncrementInteger": @@ @@ throw new InvalidArgumentException(sprintf('Invalid locale code: "%s".', $locale)); } $filePath = $this->path . DIRECTORY_SEPARATOR . $locale; - if ($withCreateDir && !file_exists($filePath) && !mkdir($filePath, 0775, true) && !is_dir($filePath)) { + if ($withCreateDir && !file_exists($filePath) && !mkdir($filePath, 510, true) && !is_dir($filePath)) { throw new RuntimeException(sprintf('Directory "%s" was not created', $filePath)); } $filePath .= DIRECTORY_SEPARATOR . $category . '.php';
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L72
Escaped Mutant for Mutator "DecrementInteger": @@ @@ throw new InvalidArgumentException(sprintf('Invalid locale code: "%s".', $locale)); } $filePath = $this->path . DIRECTORY_SEPARATOR . $locale; - if ($withCreateDir && !file_exists($filePath) && !mkdir($filePath, 0775, true) && !is_dir($filePath)) { + if ($withCreateDir && !file_exists($filePath) && !mkdir($filePath, 508, true) && !is_dir($filePath)) { throw new RuntimeException(sprintf('Directory "%s" was not created', $filePath)); } $filePath .= DIRECTORY_SEPARATOR . $category . '.php';
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L72
Escaped Mutant for Mutator "LogicalAnd": @@ @@ throw new InvalidArgumentException(sprintf('Invalid locale code: "%s".', $locale)); } $filePath = $this->path . DIRECTORY_SEPARATOR . $locale; - if ($withCreateDir && !file_exists($filePath) && !mkdir($filePath, 0775, true) && !is_dir($filePath)) { + if (($withCreateDir || !file_exists($filePath)) && !mkdir($filePath, 0775, true) && !is_dir($filePath)) { throw new RuntimeException(sprintf('Directory "%s" was not created', $filePath)); } $filePath .= DIRECTORY_SEPARATOR . $category . '.php';
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L67
Escaped Mutant for Mutator "PregMatchRemoveDollar": @@ @@ } private function getFilePath(string $category, string $locale, bool $withCreateDir = false): string { - if ($locale !== '' && !preg_match('/^[a-z0-9_-]+$/i', $locale)) { + if ($locale !== '' && !preg_match('/^[a-z0-9_-]+/i', $locale)) { throw new InvalidArgumentException(sprintf('Invalid locale code: "%s".', $locale)); } $filePath = $this->path . DIRECTORY_SEPARATOR . $locale;
mutation / PHP 8.5-ubuntu-latest: src/MessageSource.php#L65
Escaped Mutant for Mutator "FalseValue": @@ @@ throw new RuntimeException('Can not write to ' . $path); } } - private function getFilePath(string $category, string $locale, bool $withCreateDir = false): string + private function getFilePath(string $category, string $locale, bool $withCreateDir = true): string { if ($locale !== '' && !preg_match('/^[a-z0-9_-]+$/i', $locale)) { throw new InvalidArgumentException(sprintf('Invalid locale code: "%s".', $locale));