-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: PHPStan | ||
|
||
on: | ||
push: | ||
branches: [6.0] | ||
pull_request: | ||
branches: [6.0] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
PHPStan: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php_versions: ['8.1', '8.2', '8.3', '8.4'] | ||
|
||
runs-on: ubuntu-latest | ||
name: PHPStan - ${{ matrix.php_versions }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP,with composer and extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php_versions }} | ||
|
||
- name: Install Dependencies | ||
run: composer update --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
|
||
- name: Run PHPStan | ||
run: vendor/bin/phpstan analyse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
parameters: | ||
level: 8 | ||
paths: | ||
- packages/framework/src/ | ||
- packages/framework/tests/ | ||
- packages/skeleton/app/src/ | ||
- packages/skeleton/app/tests/ | ||
- packages/sprinkle-account/app/src/ | ||
- packages/sprinkle-account/app/tests/ | ||
- packages/sprinkle-admin/app/src/ | ||
- packages/sprinkle-admin/app/tests/ | ||
- packages/sprinkle-core/app/src/ | ||
- packages/sprinkle-core/app/tests/ | ||
reportUnmatchedIgnoredErrors: false | ||
ignoreErrors: | ||
- '#Dynamic call to static method PHPUnit\\Framework\\.*#' | ||
- '#Call to an undefined method Mockery\\Expectation::.*#' | ||
- '/^Parameter #1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.$/' | ||
- '/^Parameter #1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given.$/' | ||
universalObjectCratesClasses: | ||
- UserFrosting\Sprinkle\Core\Database\Models\Interfaces\ThrottleModelInterface | ||
- UserFrosting\Sprinkle\Account\Database\Models\Interfaces\ActivityInterface | ||
- UserFrosting\Sprinkle\Account\Database\Models\Interfaces\GroupInterface | ||
- UserFrosting\Sprinkle\Account\Database\Models\Interfaces\PasswordResetInterface | ||
- UserFrosting\Sprinkle\Account\Database\Models\Interfaces\PermissionInterface | ||
- UserFrosting\Sprinkle\Account\Database\Models\Interfaces\PersistenceInterface | ||
- UserFrosting\Sprinkle\Account\Database\Models\Interfaces\RoleInterface | ||
- UserFrosting\Sprinkle\Account\Database\Models\Interfaces\UserInterface | ||
- UserFrosting\Sprinkle\Account\Database\Models\Interfaces\VerificationInterface | ||
includes: | ||
- packages/sprinkle-account/phpstan-baseline.neon | ||
- packages/sprinkle-admin/phpstan-baseline.neon | ||
- packages/sprinkle-core/phpstan-baseline.neon | ||
- vendor/phpstan/phpstan-strict-rules/rules.neon | ||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- vendor/phpstan/phpstan-mockery/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
|
||
services: | ||
- | ||
class: SlamPhpStan\UnusedVariableRule | ||
tags: | ||
- phpstan.rules.rule |