Skip to content

Commit 015c7b8

Browse files
Add Larastan / PHPStan (#228)
* Add Larastan/phpstan * Update DocBlock * Add phpstan Workflow
1 parent 1b69a44 commit 015c7b8

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.github/workflows/phpstan.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: PHPStan
2+
3+
on:
4+
push
5+
6+
jobs:
7+
phpstan:
8+
uses: stefanzweifel/reusable-workflows/.github/workflows/phpstan.yml@main
9+
with:
10+
php_version: '8.3'

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"require-dev": {
2525
"friendsofphp/php-cs-fixer": "^3.2",
26+
"larastan/larastan": "^2.0",
2627
"laravel/browser-kit-testing": "^7.1 | ^8.0",
2728
"laravel/dusk": "^8.0",
2829
"livewire/livewire": "^3.0",

phpstan.neon

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
includes:
2+
- vendor/larastan/larastan/extension.neon
3+
4+
parameters:
5+
level: 5
6+
paths:
7+
- src

src/Classifiers/EventListenerClassifier.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function getEvents(): array
4949
}
5050

5151
/**
52-
* @param Closure|string $closure
52+
* @param Closure|array|string $closure
5353
* @retrun null|string|object
5454
* @throws \ReflectionException
5555
*/

0 commit comments

Comments
 (0)