Skip to content

Commit 806d49e

Browse files
author
rotimi
committed
PHP 8.1 minimum version prep
1 parent 85548d6 commit 806d49e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
php: [8.2, 8.1]
19+
php: [8.3, 8.2, 8.1]
2020
# prefer-lowest is causing unit tests to fail when php 7.2 is run against PHPunit 7.x,
2121
# PHPUnit 8.x is the latest stable release that supports PHP 7.2 and that runs fine
2222
# dependency-version: [prefer-lowest, prefer-stable]
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Checkout code
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141

4242
- name: Setup PHP
4343
uses: shivammathur/setup-php@v2

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require-dev": {
1717
"phpunit/phpunit": "^10.0",
1818
"php-coveralls/php-coveralls": "^2.0",
19-
"rector/rector": "^0.18.0",
19+
"rector/rector": "^1.0.0",
2020
"vimeo/psalm": "^5.4"
2121
},
2222
"autoload": {
@@ -28,11 +28,13 @@
2828
},
2929
"scripts": {
3030
"test": [
31-
"composer dump",
31+
"Composer\\Config::disableProcessTimeout",
3232
"vendor/bin/phpunit --coverage-text"
3333
],
34+
"rector-clear": "vendor/bin/rector --clear-cache",
3435
"rector": "vendor/bin/rector process src --dry-run -vvv",
35-
"psalm": "vendor/bin/psalm",
36+
"psalm-clear-cache": "vendor/bin/psalm --clear-global-cache && vendor/bin/psalm --clear-cache",
37+
"psalm": "composer psalm-clear-cache && vendor/bin/psalm --threads=1",
3638
"qa": "composer test && composer rector && composer psalm"
3739
}
3840
}

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class,
2828
//\Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector::class,
2929
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector::class,
30-
\Rector\Php71\Rector\FuncCall\CountOnNullRector::class,
3130
//\Rector\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector::class,
3231
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class
3332
]);

src/CallableExecutionTimer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class CallableExecutionTimer extends ObjectifiedCallable {
1515

16-
final public const NANO_SECOND_TO_SECOND_DIVISOR = 1_000_000_000;
16+
public const NANO_SECOND_TO_SECOND_DIVISOR = 1_000_000_000;
1717

1818
/**
1919
* Holds execution stats for all function / method calls across all instances of this class

0 commit comments

Comments
 (0)