Skip to content

Commit 244af3a

Browse files
authored
Raise to PHP 8.3 (#5)
* remove duplciated ci job * raise to PHP 8.3
1 parent 706b953 commit 244af3a

File tree

7 files changed

+16
-17
lines changed

7 files changed

+16
-17
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ jobs:
2828
name: 'Coding Standard'
2929
run: composer fix-cs --ansi
3030

31-
-
32-
name: 'Class Leak'
33-
run: vendor/bin/class-leak check src tests --skip-path=Fixture --skip-path=Source --skip-type="Rector\\ArgTyper\\PHPStan\\IgnoreAllErrorsExceptArgTyperErrorExtension"
34-
3531
-
3632
name: 'Tests'
3733
run: vendor/bin/phpunit
@@ -56,7 +52,7 @@ jobs:
5652
# see https://github.com/shivammathur/setup-php
5753
- uses: shivammathur/setup-php@v2
5854
with:
59-
php-version: 8.2
55+
php-version: 8.3
6056
coverage: none
6157

6258
# composer install cache - https://github.com/ramsey/composer-install

.github/workflows/downgraded_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
-
1818
uses: "shivammathur/setup-php@v2"
1919
with:
20-
php-version: 8.2
20+
php-version: 8.3
2121
coverage: none
2222

2323
# invoke patches

composer.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,27 @@
66
"bin/argtyper"
77
],
88
"require": {
9-
"php": "^8.2",
10-
"illuminate/container": "^12.39",
11-
"nette/utils": "^4.0",
9+
"php": "^8.3",
10+
"illuminate/container": "12.39.*",
11+
"nette/utils": "^4.1",
1212
"phpstan/phpstan": "^2.1",
13-
"rector/rector": "^2.2",
13+
"rector/rector": "^2.3",
1414
"symfony/console": "^6.4",
15-
"symfony/finder": "^7.3",
16-
"symfony/process": "^7.3",
17-
"webmozart/assert": "^1.12"
15+
"symfony/finder": "^7.4",
16+
"symfony/process": "^7.4",
17+
"webmozart/assert": "^1.12|^2.0"
1818
},
1919
"require-dev": {
2020
"php-parallel-lint/php-parallel-lint": "^1.4",
21-
"phpecs/phpecs": "^2.2",
21+
"phpecs/phpecs": "^2.3",
2222
"phpstan/extension-installer": "^1.4",
2323
"phpunit/phpunit": "^11.5",
24+
"rector/jack": "^0.5.1",
2425
"shipmonk/composer-dependency-analyser": "^1.8",
2526
"symplify/phpstan-extensions": "^12.0",
2627
"tomasvotruba/class-leak": "^2.1",
2728
"tomasvotruba/unused-public": "^2.1",
28-
"tracy/tracy": "^2.10"
29+
"tracy/tracy": "^2.11"
2930
},
3031
"autoload": {
3132
"psr-4": {

src/Helpers/ProjectDirectoryFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class ProjectDirectoryFinder
1414
* Directory names commonly used as PHP source directories
1515
* @var string[]
1616
*/
17-
private const POSSIBLE_CODE_DIRECTORIES = ['src', 'lib', 'app', 'test', 'tests'];
17+
private const array POSSIBLE_CODE_DIRECTORIES = ['src', 'lib', 'app', 'test', 'tests'];
1818

1919
/**
2020
* @return string[]

src/PHPStan/IgnoreAllErrorsExceptArgTyperErrorExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ final class IgnoreAllErrorsExceptArgTyperErrorExtension implements IgnoreErrorEx
1313
{
1414
public function shouldIgnore(Error $error, Node $node, Scope $scope): bool
1515
{
16-
// Ignore all errors since ArgTyper only collects types and doesn't throw errors
16+
// Ignore all errors since ArgTyper only collects types and doesn't throw errors
1717
return true;
1818
}
1919
}

tests/PHPStan/CollectCallLikeArgTypesRule/CollectCallLikeArgTypesRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function testFloatAsInt(): void
104104
/**
105105
* @return string[]
106106
*/
107+
#[\Override]
107108
public static function getAdditionalConfigFiles(): array
108109
{
109110
return [__DIR__ . '/../../../config/phpstan-collecting-data.neon'];

tests/PHPStan/CollectFuncCallArgTypesRule/CollectFuncCallArgTypesRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function test(): void
3838
/**
3939
* @return string[]
4040
*/
41+
#[\Override]
4142
public static function getAdditionalConfigFiles(): array
4243
{
4344
return [__DIR__ . '/../../../config/phpstan-collecting-data.neon'];

0 commit comments

Comments
 (0)