Skip to content

Commit

Permalink
Add Larastan / PHPStan (#228)
Browse files Browse the repository at this point in the history
* Add Larastan/phpstan

* Update DocBlock

* Add phpstan Workflow
  • Loading branch information
stefanzweifel authored Apr 1, 2024
1 parent 1b69a44 commit 015c7b8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
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

0 comments on commit 015c7b8

Please sign in to comment.