Shaul

#PHP #Laravel #PHPStan #Larastan #StaticAnalysisTool

Getting Started In 3 Steps

  • Install
composer require --dev nunomaduro/larastan
  • Custom settings
includes:
- ./vendor/nunomaduro/larastan/extension.neon

parameters:
paths: # Enter the folder you want to analyze
- app
- tests

level: 8 # The level 8 is the highest level
ignoreErrors:
# - '#Unsafe usage of new static#'

excludePaths:
# - ./*/*/FileToBeExcluded.php

checkMissingIterableValueType: false
  • Run
./vendor/bin/phpstan analyse

Do Run

--

--

Shaul

Shaul

I have been working as a PHP web developer in Korea since June 2018.