Skip to content

Commit 7c5fd4e

Browse files
committed
bump to PHP 8.3
1 parent 4fa695b commit 7c5fd4e

File tree

41 files changed

+106
-259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+106
-259
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ jobs:
2424
name: 'Finalise classes'
2525
run: vendor/bin/swiss-knife finalize-classes src rules tests
2626

27+
-
28+
name: 'Composer Validate'
29+
run: composer validate
30+
31+
-
32+
name: 'PHPStan'
33+
run: vendor/bin/phpstan
34+
2735
name: ${{ matrix.actions.name }}
2836
runs-on: ubuntu-latest
2937
timeout-minutes: 10
@@ -34,7 +42,7 @@ jobs:
3442
-
3543
uses: shivammathur/setup-php@v2
3644
with:
37-
php-version: 8.2
45+
php-version: 8.3
3846
coverage: none
3947

4048
- uses: "ramsey/composer-install@v2"

.github/workflows/code_analysis_reuslabe.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
-
2222
uses: shivammathur/setup-php@v2
2323
with:
24-
php-version: 8.2
24+
php-version: 8.3
2525
coverage: none
2626

2727
- uses: "ramsey/composer-install@v2"

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"license": "MIT",
55
"description": "Rector upgrades rules for PHPUnit",
66
"require": {
7-
"php": ">=8.2"
7+
"php": ">=8.3"
88
},
99
"require-dev": {
10-
"phpecs/phpecs": "^2.2",
10+
"symplify/easy-coding-standard": "^13.0",
1111
"phpstan/extension-installer": "^1.4",
1212
"phpstan/phpstan": "^2.1.31",
1313
"phpstan/phpstan-deprecation-rules": "^2.0",
1414
"phpstan/phpstan-webmozart-assert": "^2.0",
1515
"phpunit/phpunit": "^11.5",
16-
"rector/jack": "^0.4.0",
16+
"rector/jack": "^0.5",
1717
"rector/rector-src": "dev-main",
1818
"rector/swiss-knife": "^1.0",
1919
"rector/type-perfect": "^2.1",

rules/AnnotationsToAttributes/Rector/ClassMethod/DataProviderAnnotationToAttributeRector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
*/
3131
final class DataProviderAnnotationToAttributeRector extends AbstractRector implements MinPhpVersionInterface
3232
{
33-
/**
34-
* @var string
35-
*/
36-
private const DATA_PROVIDER_CLASS = 'PHPUnit\Framework\Attributes\DataProvider';
33+
private const string DATA_PROVIDER_CLASS = 'PHPUnit\Framework\Attributes\DataProvider';
3734

3835
public function __construct(
3936
private readonly TestsNodeAnalyzer $testsNodeAnalyzer,

rules/AnnotationsToAttributes/Rector/ClassMethod/DependsAnnotationWithValueToAttributeRector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
*/
2828
final class DependsAnnotationWithValueToAttributeRector extends AbstractRector implements MinPhpVersionInterface
2929
{
30-
/**
31-
* @var string
32-
*/
33-
private const DEPENDS_ATTRIBUTE = 'PHPUnit\Framework\Attributes\Depends';
30+
private const string DEPENDS_ATTRIBUTE = 'PHPUnit\Framework\Attributes\Depends';
3431

3532
public function __construct(
3633
private readonly TestsNodeAnalyzer $testsNodeAnalyzer,

rules/AnnotationsToAttributes/Rector/ClassMethod/TestWithAnnotationToAttributeRector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
*/
3131
final class TestWithAnnotationToAttributeRector extends AbstractRector implements MinPhpVersionInterface
3232
{
33-
/**
34-
* @var string
35-
*/
36-
private const TEST_WITH_ATTRIBUTE = 'PHPUnit\Framework\Attributes\TestWith';
33+
private const string TEST_WITH_ATTRIBUTE = 'PHPUnit\Framework\Attributes\TestWith';
3734

3835
public function __construct(
3936
private readonly TestsNodeAnalyzer $testsNodeAnalyzer,

rules/AnnotationsToAttributes/Rector/Class_/CoversAnnotationWithValueToAttributeRector.php

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,13 @@
2828
*/
2929
final class CoversAnnotationWithValueToAttributeRector extends AbstractRector implements MinPhpVersionInterface
3030
{
31-
/**
32-
* @var string
33-
*/
34-
private const COVERS_FUNCTION_ATTRIBUTE = 'PHPUnit\Framework\Attributes\CoversFunction';
31+
private const string COVERS_FUNCTION_ATTRIBUTE = 'PHPUnit\Framework\Attributes\CoversFunction';
3532

36-
/**
37-
* @var string
38-
*/
39-
private const COVERTS_CLASS_ATTRIBUTE = 'PHPUnit\Framework\Attributes\CoversClass';
33+
private const string COVERTS_CLASS_ATTRIBUTE = 'PHPUnit\Framework\Attributes\CoversClass';
4034

41-
/**
42-
* @var string
43-
*/
44-
private const COVERTS_TRAIT_ATTRIBUTE = 'PHPUnit\Framework\Attributes\CoversTrait';
35+
private const string COVERTS_TRAIT_ATTRIBUTE = 'PHPUnit\Framework\Attributes\CoversTrait';
4536

46-
/**
47-
* @var string
48-
*/
49-
private const COVERS_METHOD_ATTRIBUTE = 'PHPUnit\Framework\Attributes\CoversMethod';
37+
private const string COVERS_METHOD_ATTRIBUTE = 'PHPUnit\Framework\Attributes\CoversMethod';
5038

5139
public function __construct(
5240
private readonly PhpDocTagRemover $phpDocTagRemover,

rules/AnnotationsToAttributes/Rector/Class_/TicketAnnotationToAttributeRector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@
3333
*/
3434
final class TicketAnnotationToAttributeRector extends AbstractRector implements MinPhpVersionInterface
3535
{
36-
/**
37-
* @var string
38-
*/
39-
private const TICKET_CLASS = 'PHPUnit\Framework\Attributes\Ticket';
36+
private const string TICKET_CLASS = 'PHPUnit\Framework\Attributes\Ticket';
4037

4138
public function __construct(
4239
private readonly PhpDocTagRemover $phpDocTagRemover,

rules/CodeQuality/Enum/NonAssertNonStaticMethods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ final class NonAssertNonStaticMethods
99
/**
1010
* @var string[]
1111
*/
12-
public const ALL = [
12+
public const array ALL = [
1313
'createMock',
1414
'atLeast',
1515
'atLeastOnce',

0 commit comments

Comments
 (0)