Add Larastan configuration and dependencies for static analysis
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Gemini PR Review / review (pull_request) Successful in 54s
Laravel Pint / pint (pull_request) Failing after 1m47s
Laravel Larastan / larastan (pull_request) Failing after 1m52s

This commit is contained in:
dhanabalan
2025-11-25 14:39:14 +05:30
parent ee02c24fbc
commit bfb4dd3643
4 changed files with 235 additions and 1 deletions

17
phpstan.neon Normal file
View File

@@ -0,0 +1,17 @@
includes:
- vendor/larastan/larastan/extension.neon
- vendor/nesbot/carbon/extension.neon
parameters:
paths:
- app/
# Level 10 is the highest level
level: 3
# ignoreErrors:
# - '#PHPDoc tag @var#'
#
# excludePaths:
# - ./*/*/FileToBeExcluded.php