Enhancement: Add support for PHP 8.4 #1915
integrate.yaml
on: pull_request
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Annotations
4 errors and 7 warnings
Tests (8.4, lowest)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires vimeo/psalm ^5.26.1 -> satisfiable by vimeo/psalm[5.26.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.4.0-dev) does not satisfy that requirement.
Problem 2
- Root composer.json requires psalm/plugin-phpunit ~0.19.0 -> satisfiable by psalm/plugin-phpunit[0.19.0].
- psalm/plugin-phpunit 0.19.0 requires vimeo/psalm dev-master || ^5@beta || ^5.0 -> satisfiable by vimeo/psalm[5.26.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.4.0-dev) does not satisfy that requirement.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
|
Tests (8.4, lowest)
Process completed with exit code 2.
|
Tests (8.4, highest)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires vimeo/psalm ^5.26.1 -> satisfiable by vimeo/psalm[5.26.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.4.0-dev) does not satisfy that requirement.
Problem 2
- Root composer.json requires psalm/plugin-phpunit ~0.19.0 -> satisfiable by psalm/plugin-phpunit[0.19.0].
- psalm/plugin-phpunit 0.19.0 requires vimeo/psalm dev-master || ^5@beta || ^5.0 -> satisfiable by vimeo/psalm[5.26.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.4.0-dev) does not satisfy that requirement.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
|
Tests (8.4, highest)
Process completed with exit code 2.
|
Mutation Tests (7.4, locked):
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);
|
Mutation Tests (7.4, locked):
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)) {
|
Mutation Tests (7.4, locked):
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);
|
Mutation Tests (7.4, locked):
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);
|
Mutation Tests (7.4, locked):
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);
|
Mutation Tests (7.4, locked):
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);
|
Mutation Tests (7.4, locked):
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);
|