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

Add Larastan / PHPStan #228

Merged
merged 3 commits into from
Apr 1, 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
10 changes: 10 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PHPStan

on:
push

jobs:
phpstan:
uses: stefanzweifel/reusable-workflows/.github/workflows/phpstan.yml@main
with:
php_version: '8.3'
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"larastan/larastan": "^2.0",
"laravel/browser-kit-testing": "^7.1 | ^8.0",
"laravel/dusk": "^8.0",
"livewire/livewire": "^3.0",
Expand Down
7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
includes:
- vendor/larastan/larastan/extension.neon

parameters:
level: 5
paths:
- src
2 changes: 1 addition & 1 deletion src/Classifiers/EventListenerClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function getEvents(): array
}

/**
* @param Closure|string $closure
* @param Closure|array|string $closure
* @retrun null|string|object
* @throws \ReflectionException
*/
Expand Down
Loading