Skip to content

Commit 7dea152

Browse files
PHP 8.4 Support (#51)
* build: support php84 * build: update pint * refactor: fix new pint issues --------- Co-authored-by: Erik Perri <erik.perri@sourcetoad.com>
1 parent 4369e0a commit 7dea152

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: [8.2, 8.3]
10+
php: [8.2, 8.3, 8.4]
1111
stability: ["--prefer-lowest", "--prefer-stable"]
1212
steps:
1313
- name: Checkout

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"license": "MIT",
66
"minimum-stability": "stable",
77
"require": {
8-
"php": "^8.2",
8+
"php": "^8.2||^8.3||^8.4",
99
"laravel/framework": "^11.23.2"
1010
},
1111
"require-dev": {
1212
"ext-json": "*",
1313
"orchestra/testbench": "^9.4",
1414
"phpunit/phpunit": "^10.5",
15-
"laravel/pint": "1.13.9",
16-
"larastan/larastan": "^2.0"
15+
"laravel/pint": "1.19.0",
16+
"larastan/larastan": "^3.0"
1717
},
1818
"autoload": {
1919
"psr-4": {

pint.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
"rules": {
44
"blank_line_between_import_groups": false,
55
"declare_strict_types": true,
6-
"function_declaration": {
7-
"closure_fn_spacing": "none"
8-
},
6+
"function_declaration": {"closure_fn_spacing": "none"},
97
"not_operator_with_successor_space": false,
108
"phpdoc_align": false,
11-
"phpdoc_separation": false
9+
"phpdoc_separation": false,
10+
"php_unit_method_casing": {"case": "camel_case"}
1211
}
1312
}

tests/TestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66

77
abstract class TestCase extends \Orchestra\Testbench\TestCase
88
{
9+
//
910
}

tests/Unit/RuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3208,7 +3208,7 @@ public static function dateProvider(): array
32083208

32093209
private function mockUserAuth(string $password, ?string $guardName): void
32103210
{
3211-
$user = new User();
3211+
$user = new User;
32123212
/** @noinspection PhpUndefinedFieldInspection */
32133213
$user->password = $password;
32143214

@@ -3249,7 +3249,7 @@ private function mockFile(string $path, ?string $mimeType = null): File
32493249

32503250
if ($mimeType) {
32513251
// We need to start a new instance in case a guesser was already created for a previous test.
3252-
$finder = new MimeTypes();
3252+
$finder = new MimeTypes;
32533253

32543254
$finder->registerGuesser(new class($mimeType) implements MimeTypeGuesserInterface
32553255
{

0 commit comments

Comments
 (0)