Skip to content

Commit 6429ce2

Browse files
authored
use rexstan v2 (#101)
1 parent f801ca9 commit 6429ce2

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Setup PHP
6666
uses: shivammathur/setup-php@v2
6767
with:
68-
php-version: '8.2'
68+
php-version: '8.4'
6969
extensions: gd, intl, pdo_mysql, iconv
7070
coverage: none # disable xdebug, pcov
7171

@@ -110,7 +110,7 @@ jobs:
110110
- name: Copy and install Addons
111111
run: |
112112
rsync -av --exclude='.github' --exclude='.git' --exclude='redaxo_cms' './' 'redaxo_cms/redaxo/src/addons/${{ github.event.repository.name }}'
113-
redaxo_cms/redaxo/bin/console install:download 'rexstan' '1.*'
113+
redaxo_cms/redaxo/bin/console install:download 'rexstan' '2.*'
114114
redaxo_cms/redaxo/bin/console package:install 'rexstan'
115115
redaxo_cms/redaxo/bin/console package:install '${{ github.event.repository.name }}'
116116
# execute rexstan.php to create the needed user-config.neon
@@ -121,4 +121,4 @@ jobs:
121121
# run rexstan
122122
- id: rexstan
123123
name: Run rexstan
124-
run: redaxo_cms/redaxo/bin/console rexstan:analyze
124+
run: redaxo_cms/redaxo/bin/console rexstan:analyze -v

.tools/rexstan.neon

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
parameters:
2-
bootstrapFiles:
3-
- ../vendor/deployer/deployer/src/functions.php
2+
bootstrapFiles:
3+
- ../vendor/deployer/deployer/src/functions.php
4+
5+
ignoreErrors:
6+
-
7+
message: '#internal class rex_(api_)?ydeploy#'
8+
identifiers:
9+
- class.extendsInternalClass
10+
- method.internalClass
11+
- new.internalClass
12+
- parameter.internalClass
13+
- property.internalClass
14+
- staticMethod.internalClass

.tools/rexstan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@
3939
* @param array $extensions the extensions to use
4040
* @param int $phpVersion the php version to use
4141
*/
42-
\rexstan\RexStanUserConfig::save(5, $addon, $extensions, 80203);
42+
\rexstan\RexStanUserConfig::save(5, $addon, $extensions, 80407);

deploy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
throw new RuntimeException('YDeploy 2.x requires Deployer 7.x, but Deployer ' . $version . ' is used');
1212
}
1313

14-
require 'recipe/common.php';
14+
require 'recipe/common.php'; /** @phpstan-ignore require.fileNotFound */
1515

1616
require __DIR__ . '/deployer/config.php';
1717
require __DIR__ . '/deployer/functions.php';

0 commit comments

Comments
 (0)