diff --git a/.github/workflows/coding_style_checks.yml b/.github/workflows/coding_style_checks.yml index 853bf61..bf8cd60 100644 --- a/.github/workflows/coding_style_checks.yml +++ b/.github/workflows/coding_style_checks.yml @@ -8,7 +8,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Coding Style Checks - run: docker run --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php8.2 php-cs-fixer fix --dry-run + run: docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php8.2 php-cs-fixer fix --dry-run diff --git a/.github/workflows/syntax_checks.yml b/.github/workflows/syntax_checks.yml index 160e20a..586370b 100644 --- a/.github/workflows/syntax_checks.yml +++ b/.github/workflows/syntax_checks.yml @@ -8,14 +8,14 @@ jobs: strategy: fail-fast: true matrix: - php: ["8.0", "8.1", "8.2"] + php: ["8.0", "8.1", "8.2", "8.3"] name: Syntax Checks Under PHP ${{ matrix.php }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Syntax Checks run: | - docker run --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php${{ matrix.php }} phplint src + docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php${{ matrix.php }} phplint src diff --git a/.gitignore b/.gitignore index 6765ea3..87fe088 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ .DS_Store # Ignore files created by GitLab Actions +/.phplint.cache /.phplint-cache # Ignore Composer files diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 87bbf0a..6fa7fa6 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -44,6 +44,7 @@ 'phpdoc_summary' => false, 'ordered_class_elements' => true, 'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'], + 'ordered_types' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'], 'single_line_comment_style' => ['comment_types' => []], 'single_line_comment_spacing' => false, 'single_line_empty_body' => false,