diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9ed1fd0..95f33a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - php: [8.3, 8.2, 8.1, 8.0] + php: [8.4, 8.3, 8.2, 8.1, 8.0] dependency-version: [prefer-lowest, prefer-stable] os: [ubuntu-latest, windows-latest] diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index b661109..062537e 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -41,7 +41,7 @@ // Comments with annotation should be docblock when used on structural elements. 'comment_to_phpdoc' => true, // Remove extra spaces in a nullable typehint. - 'compact_nullable_typehint' => true, + 'compact_nullable_type_declaration' => true, // Concatenation should be spaced according configuration. 'concat_space' => ['spacing'=>'one'], // The PHP constants `true`, `false`, and `null` MUST be written using the correct casing. @@ -111,9 +111,9 @@ // Add leading `\` before function invocation to speed up resolving. 'native_function_invocation' => ['include'=>['@all','trans']], // Native type hints for functions should use the correct case. - 'native_function_type_declaration_casing' => true, - // All instances created with new keyword must be followed by braces. - 'new_with_braces' => true, + 'native_type_declaration_casing' => true, + // All instances created with new keyword must be followed by parentheses. + 'new_with_parentheses' => true, // Master functions shall be used instead of aliases. 'no_alias_functions' => true, // Master language constructs shall be used instead of aliases. @@ -156,8 +156,8 @@ 'no_trailing_whitespace_in_comment' => true, // Removes unneeded parentheses around control statements. 'no_unneeded_control_parentheses' => true, - // Removes unneeded curly braces that are superfluous and aren't part of a control structure's body. - 'no_unneeded_curly_braces' => true, + // Removes unneeded braces that are superfluous and aren't part of a control structure's body. + 'no_unneeded_braces' => true, // A `final` class must not have `final` methods and `private` methods must not be `final`. 'no_unneeded_final_method' => true, // In function arguments there must not be arguments with default values before non-default ones. diff --git a/composer.json b/composer.json index 6edd148..cd40b64 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ }, "require": { - "php": ">=8.0 <8.4" + "php": ">=8.0 <8.5" }, "require-dev": { "phpunit/phpunit": ">=9.0", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 56bd7e0..d76da31 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,6 +5,11 @@ processIsolation="false" stopOnFailure="false" bootstrap="./tests/bootstrap.php" + displayDetailsOnTestsThatTriggerDeprecations="true" + displayDetailsOnTestsThatTriggerErrors="true" + displayDetailsOnTestsThatTriggerNotices="true" + displayDetailsOnTestsThatTriggerWarnings="true" + backupStaticProperties="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">