Skip to content

Commit b5ad678

Browse files
agentrickardbbrala
andauthored
Upgrade project tooling to PHP 8.2 (#300)
* Php 8.2 * Wait for 12.1.11 release of symplify/rule-doc-generator/tags * Stylf fix (line endings?) --------- Co-authored-by: bjorn <bjorn@swis.nl>
1 parent f74538a commit b5ad678

File tree

7 files changed

+16
-13
lines changed

7 files changed

+16
-13
lines changed

.github/workflows/codestyle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 8.1
18+
php-version: 8.2
1919
coverage: none # disable xdebug, pcov
2020
tools: composer:v2
2121
extensions: zip

.github/workflows/functional_test__rector_examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- php-version: "8.1"
3131
drupal: "^10.0"
3232
fixture: "d10"
33+
- php-version: "8.2"
34+
drupal: "^10.0"
35+
fixture: "d10"
3336
runs-on: ubuntu-latest
3437
steps:
3538
- uses: actions/checkout@v3

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- uses: shivammathur/setup-php@v2
2121
with:
22-
php-version: 8.1
22+
php-version: 8.2
2323
coverage: none # disable xdebug, pcov
2424
tools: composer:v2
2525
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
php-version:
20-
- "8.1"
20+
- "8.2"
2121
steps:
2222
- uses: actions/checkout@v3
2323
- uses: shivammathur/setup-php@v2

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@
7474
"enable-patching": true
7575
},
7676
"require-dev": {
77-
"php": "^8.1",
77+
"php": "^8.2",
7878
"cweagans/composer-patches": "^1.7.2",
79-
"friendsofphp/php-cs-fixer": "^3.38",
79+
"friendsofphp/php-cs-fixer": "^3.0",
8080
"phpstan/extension-installer": "^1.1",
8181
"phpstan/phpstan": "^1.0",
8282
"phpstan/phpstan-deprecation-rules": "^1.0",
8383
"phpunit/phpunit": "^10.0",
8484
"symfony/yaml": "^5 || ^6",
85-
"symplify/rule-doc-generator": "^12.0",
85+
"symplify/rule-doc-generator": "dev-main",
8686
"symplify/vendor-patches": "^11.0"
8787
},
8888
"scripts": {

src/Drupal8/Rector/Deprecation/DrupalLRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getRuleDefinition(): RuleDefinition
4646
public function getNodeTypes(): array
4747
{
4848
return [
49-
Node\Expr\StaticCall::class,
49+
Node\Expr\StaticCall::class,
5050
];
5151
}
5252

src/Drupal8/Rector/Deprecation/SafeMarkupFormatRector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ final class SafeMarkupFormatRector extends AbstractRector
2727
public function getRuleDefinition(): RuleDefinition
2828
{
2929
return new RuleDefinition('Fixes deprecated SafeMarkup::format() calls', [
30-
new CodeSample(
31-
<<<'CODE_BEFORE'
30+
new CodeSample(
31+
<<<'CODE_BEFORE'
3232
$safe_string_markup_object = \Drupal\Component\Utility\SafeMarkup::format('hello world');
3333
CODE_BEFORE
34-
,
35-
<<<'CODE_AFTER'
34+
,
35+
<<<'CODE_AFTER'
3636
$safe_string_markup_object = new \Drupal\Component\Render\FormattableMarkup('hello world');
3737
CODE_AFTER
38-
),
38+
),
3939
]);
4040
}
4141

@@ -45,7 +45,7 @@ public function getRuleDefinition(): RuleDefinition
4545
public function getNodeTypes(): array
4646
{
4747
return [
48-
Node\Expr\StaticCall::class,
48+
Node\Expr\StaticCall::class,
4949
];
5050
}
5151

0 commit comments

Comments
 (0)