Skip to content

Commit b3b9351

Browse files
authored
PHP 8.4 support (#138)
1 parent e35e414 commit b3b9351

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php: [8.3, 8.2, 8.1, 8.0]
11+
php: [8.4, 8.3, 8.2, 8.1, 8.0]
1212
dependency-version: [prefer-lowest, prefer-stable]
1313
os: [ubuntu-latest, windows-latest]
1414

.php-cs-fixer.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
// Comments with annotation should be docblock when used on structural elements.
4242
'comment_to_phpdoc' => true,
4343
// Remove extra spaces in a nullable typehint.
44-
'compact_nullable_typehint' => true,
44+
'compact_nullable_type_declaration' => true,
4545
// Concatenation should be spaced according configuration.
4646
'concat_space' => ['spacing'=>'one'],
4747
// The PHP constants `true`, `false`, and `null` MUST be written using the correct casing.
@@ -111,9 +111,9 @@
111111
// Add leading `\` before function invocation to speed up resolving.
112112
'native_function_invocation' => ['include'=>['@all','trans']],
113113
// Native type hints for functions should use the correct case.
114-
'native_function_type_declaration_casing' => true,
115-
// All instances created with new keyword must be followed by braces.
116-
'new_with_braces' => true,
114+
'native_type_declaration_casing' => true,
115+
// All instances created with new keyword must be followed by parentheses.
116+
'new_with_parentheses' => true,
117117
// Master functions shall be used instead of aliases.
118118
'no_alias_functions' => true,
119119
// Master language constructs shall be used instead of aliases.
@@ -156,8 +156,8 @@
156156
'no_trailing_whitespace_in_comment' => true,
157157
// Removes unneeded parentheses around control statements.
158158
'no_unneeded_control_parentheses' => true,
159-
// Removes unneeded curly braces that are superfluous and aren't part of a control structure's body.
160-
'no_unneeded_curly_braces' => true,
159+
// Removes unneeded braces that are superfluous and aren't part of a control structure's body.
160+
'no_unneeded_braces' => true,
161161
// A `final` class must not have `final` methods and `private` methods must not be `final`.
162162
'no_unneeded_final_method' => true,
163163
// In function arguments there must not be arguments with default values before non-default ones.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
},
3030
"require": {
31-
"php": ">=8.0 <8.4"
31+
"php": ">=8.0 <8.5"
3232
},
3333
"require-dev": {
3434
"phpunit/phpunit": ">=9.0",

phpunit.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
processIsolation="false"
66
stopOnFailure="false"
77
bootstrap="./tests/bootstrap.php"
8+
displayDetailsOnTestsThatTriggerDeprecations="true"
9+
displayDetailsOnTestsThatTriggerErrors="true"
10+
displayDetailsOnTestsThatTriggerNotices="true"
11+
displayDetailsOnTestsThatTriggerWarnings="true"
12+
backupStaticProperties="false"
813
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
914
<testsuites>
1015
<testsuite name="Math Executor tests">

0 commit comments

Comments
 (0)