Skip to content

Commit 0c31559

Browse files
authored
Php 84 support (#330)
* Upgrade to laravel-zero/framework v11 * Fix QA * Change php support matrix * Execute phpstan on latest php version * Add typehint to repository
1 parent df4438b commit 0c31559

File tree

6 files changed

+1292
-603
lines changed

6 files changed

+1292
-603
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: true
1818
matrix:
1919
os: [ubuntu-22.04, windows-2019]
20-
php: [8.1, 8.2, 8.3]
20+
php: [8.2, 8.3, 8.4]
2121

2222
name: PHP ${{ matrix.php }} - ${{ matrix.os }}
2323

@@ -54,7 +54,7 @@ jobs:
5454

5555
- name: Execute static analysis
5656
run: vendor/bin/phpstan
57-
if: matrix.php == '8.1'
57+
if: matrix.php == '8.4'
5858

5959
- name: Execute unit/feature tests
6060
run: vendor/bin/pest

app/Factories/ConfigurationFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ConfigurationFactory
3737
/**
3838
* Creates a PHP CS Fixer Configuration with the given array of rules.
3939
*
40-
* @param array<string, array<string, array<int|string, string|null>|bool|string>|bool> $rules
40+
* @param array<string, array<string, array<int|string, string|int|string[]>|bool|string>|bool> $rules
4141
* @return \PhpCsFixer\ConfigInterface
4242
*/
4343
public static function preset($rules)

app/Repositories/GitPathsRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function diff($branch)
5959
'untracked' => tap(new Process(['git', 'ls-files', '--others', '--exclude-standard', '--', '**.php']))->run(),
6060
];
6161

62+
/** @var Collection<int, string> $files */
6263
$files = collect($files)
6364
->each(fn ($process) => abort_if(
6465
boolean: ! $process->isSuccessful(),

app/ValueObjects/Issue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Issue
1414
* @param string $path
1515
* @param string $file
1616
* @param string $symbol
17-
* @param array<string, array<int, string>|\Throwable> $payload
17+
* @param array<string, list<string>|string|\Throwable> $payload
1818
*/
1919
public function __construct(
2020
protected $path,
@@ -93,7 +93,7 @@ public function symbol()
9393
/**
9494
* Returns the issue's diff, if any.
9595
*
96-
* @return string|null
96+
* @return string|void
9797
*/
9898
protected function diff()
9999
{

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1.0",
19+
"php": "^8.2.0",
2020
"ext-json": "*",
2121
"ext-mbstring": "*",
2222
"ext-tokenizer": "*",
2323
"ext-xml": "*"
2424
},
2525
"require-dev": {
2626
"friendsofphp/php-cs-fixer": "^3.66.0",
27-
"illuminate/view": "^10.48.25",
28-
"larastan/larastan": "^2.9.12",
29-
"laravel-zero/framework": "^10.48.25",
27+
"illuminate/view": "^11.36.1",
28+
"larastan/larastan": "^3.0",
29+
"laravel-zero/framework": "^11.36.1",
3030
"mockery/mockery": "^1.6.12",
31-
"nunomaduro/termwind": "^1.17.0",
31+
"nunomaduro/termwind": "^2.0",
3232
"pestphp/pest": "^2.36.0"
3333
},
3434
"autoload": {
@@ -49,7 +49,7 @@
4949
"sort-packages": true,
5050
"optimize-autoloader": true,
5151
"platform": {
52-
"php": "8.1.0"
52+
"php": "8.2.0"
5353
},
5454
"allow-plugins": {
5555
"pestphp/pest-plugin": true

0 commit comments

Comments
 (0)