Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: JIRA-13971 Coding Style - Update to PHPStan 2.x #80

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ jobs:
setup:
timeout-minutes: 30
runs-on: ubuntu-latest
name: Pest ${{ matrix.test-suite }} on PHP ${{ matrix.php }}
name: Pest ${{ matrix.test-suite }}
strategy:
matrix:
php: ['8.3']
test-suite: ['phpcsfixer', 'phpstan', 'rector', 'phpcs']

steps:
Expand All @@ -20,10 +19,10 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
php-version: ${{ matrix.php }}
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Static Analysis

on: [push]
on:
push:

jobs:
ecs:
Expand All @@ -17,9 +18,11 @@ jobs:
with:
php-version: 8.3
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install Dependencies
run: composer update --prefer-dist --no-interaction --no-progress --ansi
- name: Install Composer dependencies
uses: ramsey/composer-install@v3

- name: Style
run: composer test:lint
18 changes: 12 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"require": {
"php": "^8.2",
"composer-plugin-api": "^2.0",
"canvural/larastan-strict-rules": "^2.1.10",
"larastan/larastan": "^2.9.11",
"phpstan/phpstan": "^1.12.11",
"phpstan/phpstan-mockery": "^1.1.3",
"rector/rector": "^1.2",
"canvural/larastan-strict-rules": "^3.0",
"larastan/larastan": "^3.0",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-mockery": "^2.0",
"rector/rector": "^2.0",
"slevomat/coding-standard": "^8.15",
"spaze/phpstan-disallowed-calls": "^4.0.1",
"symplify/easy-coding-standard": "^12.3.6"
Expand Down Expand Up @@ -41,6 +41,10 @@
{
"name": "Owen Voke",
"email": "[email protected]"
},
{
"name": "Odinn Adalsteinsson",
"email": "[email protected]"
}
],
"extra": {
Expand All @@ -66,5 +70,7 @@
"@test:phpcsfixer",
"@test:phpcs"
]
}
},
"minimum-stability": "stable",
"prefer-stable": true
}
Loading