Skip to content

Commit 811b6b9

Browse files
committed
newer php
1 parent 4e827e4 commit 811b6b9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
-
3535
uses: shivammathur/setup-php@v2
3636
with:
37-
php-version: 8.1
37+
php-version: 8.3
3838
coverage: none
3939

4040
- uses: "ramsey/composer-install@v1"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"webmozart/assert": "^1.11"
1515
},
1616
"require-dev": {
17-
"phpecs/phpecs": "^2.2",
17+
"symplify/easy-coding-standard": "^12.6",
1818
"phpstan/phpstan": "^2.1",
1919
"phpunit/phpunit": "^11.5",
20-
"rector/rector": "^2.2"
20+
"rector/rector": "^2.2.2"
2121
},
2222
"autoload": {
2323
"psr-4": {

snippet/nullable_type.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
declare(strict_types=1);
44

5+
use PhpParser\Node\Name;
56
use PhpParser\Node\NullableType;
67

7-
return new NullableType(new \PhpParser\Node\Name('SomeType'));
8+
return new NullableType(new Name('SomeType'));

snippet/php_74/property_typed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
use PhpParser\Node\Stmt\Class_;
5+
use PhpParser\Modifiers;
66
use PhpParser\Node\Stmt\Property;
77
use PhpParser\Node\Stmt\PropertyProperty;
88
use PhpParser\Node\VarLikeIdentifier;
99

1010
$propertyProperty = new PropertyProperty(new VarLikeIdentifier('propertyName'));
1111

12-
return new Property(\PhpParser\Modifiers::PUBLIC, [$propertyProperty], [], new \PhpParser\Node\Identifier('string'));
12+
return new Property(Modifiers::PUBLIC, [$propertyProperty], [], new \PhpParser\Node\Identifier('string'));

0 commit comments

Comments
 (0)