-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: phpstan level 5 * fix: $database undefined * fix: Unsafe usage of new static() * fix: ignore NativeAppServiceProvider not existing * fix: FreshCommand constructor invoked with 1 parameter, 0 required * fix: MenuBuilder facade function duplicates and arguments * fix: Type void cannot be part of a union type declaration. * fix: Php compactor missing imports and return statement * fix: missing SeedDatabaseCommand@handle return statement * Fix: cannot assign a value to a public readonly property outside of the constructor * Fix: PowerMonitor invoked Client::get() with 2 parameters, 1 required * fix: alternative for FreshCommand migrator argument * Revert "fix: alternative for FreshCommand migrator argument" This reverts commit cac9ea1. * Revert "fix: FreshCommand constructor invoked with 1 parameter, 0 required" This reverts commit cc1cb87. * fix: trying something * fix: phpstan.yml * Revert "fix: trying something" This reverts commit 6b88d13. * fix: trying to lower the minimum laravel 10 dependency * fix: final fix 🎉 * Revert "Fix: cannot assign a value to a public readonly property outside of the constructor" This reverts commit 585fb47. * fix: put back previous fixes and ignore phpstan errors
- Loading branch information
Showing
15 changed files
with
92 additions
and
60 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 |
---|---|---|
@@ -1,26 +1,42 @@ | ||
name: PHPStan | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- '**.php' | ||
- 'phpstan.neon.dist' | ||
branches-ignore: | ||
- 'dependabot/npm_and_yarn/*' | ||
|
||
jobs: | ||
phpstan: | ||
name: phpstan | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
php: [8.3] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
coverage: none | ||
php-version: ${{ matrix.php }} | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache Composer dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer- | ||
|
||
- name: Install composer dependencies | ||
uses: ramsey/composer-install@v3 | ||
- name: Install Dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
|
||
- name: Run PHPStan | ||
run: ./vendor/bin/phpstan --error-format=github | ||
- name: Run analysis | ||
run: ./vendor/bin/phpstan analyse --error-format=github |
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ composer.lock | |
coverage | ||
docs | ||
phpunit.xml | ||
phpstan.neon | ||
testbench.yaml | ||
vendor | ||
node_modules | ||
|
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
Empty file.
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,18 @@ | ||
parameters: | ||
|
||
paths: | ||
- src/ | ||
- config/ | ||
# - tests/ | ||
|
||
|
||
# Level 9 is the highest level | ||
level: 5 | ||
|
||
ignoreErrors: | ||
- '#Class App\\Providers\\NativeAppServiceProvider not found#' | ||
- '#Class Native\\Laravel\\ChildProcess has an uninitialized readonly property#' | ||
|
||
# | ||
# excludePaths: | ||
# - ./*/*/FileToBeExcluded.php |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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