Created
January 28, 2020 16:56
-
-
Save HSPDev/8cc4e89be22f09d192fec10a576b8d0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
includes: | |
- ./vendor/nunomaduro/larastan/extension.neon | |
parameters: | |
level: 7 | |
ignoreErrors: | |
#I can't imagine an instance where our logger would return null. | |
- "#Cannot call method warning() on Illuminate\\Log\\LogManager|null.#" | |
#I think it doesn't know about the Macro for "Locks" on Cache, but it works. | |
- '#Call to an undefined method Illuminate\\Contracts\\Cache\\Repository::lock().#' | |
#Only ignored because Carbon throws parse exceptions, so shouldn't return false. | |
- '#Cannot call method isBefore() on Illuminate\Support\Carbon|false.#' | |
#findOrFail apparently returns mixed, again Larastan doesn't know what to do. | |
- '#Cannot access property \$id on mixed\.#' | |
#Larastan claims that whereMagicalName requires an array, definitely does not. | |
- '#Parameter \#1 \$parameters of static method Illuminate\\Database\\Query\\Builder::whereSystemCode\(\) expects array, string given\.#' | |
#Facade missing docs | |
- '#Call to an undefined static method Zttp\\Zttp::get\(\)#' | |
#Serious question, why the fuck is larastan this stupid? Happens in foreach loops on EloquentModel::all() results... | |
- '#Access to an undefined property object::\$(.+?)\.#' | |
- '#Call to an undefined method object::(.+?)\(\)\.#' | |
#Bad Bugsnag facade | |
- '#Call to an undefined static method Bugsnag\\BugsnagLaravel\\Facades\\Bugsnag::reportException\(\)\.#' | |
#Can't see we are using a ?? to access the property | |
- '#Access to an undefined property App\\Models\\Department\|\(Illuminate\\Database\\Eloquent\\Collection&iterable\<App\\Models\\Department\>\)\|stdClass::\$number\.#' | |
#It's $this in the closure, it works. Larastan doesn't like macros? | |
- '#Call to an undefined method App\\Providers\\AppServiceProvider::reduce\(\)\.#' | |
#Laravel scout extended doesnt hint the ->with method but it works fine | |
- '#Call to an undefined method Laravel\\Scout\\Builder::with\(\)#' | |
#Larastan doesnt know about max() method on Eloquent models | |
- '#Cannot cast Illuminate\\Database\\Eloquent\\Builder to int.#' | |
- '#Access to an undefined property Illuminate\\Support\\HigherOrderCollectionProxy::\$leasePeriods\.#' | |
excludes_analyse: | |
inferPrivatePropertyTypeFromConstructor: true | |
featureToggles: | |
allowVarTagAboveStatements: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment