mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 07:04:03 +00:00
resolve all phpstan issues
This commit is contained in:
parent
b7a6953231
commit
942d79cbd7
12 changed files with 57 additions and 88 deletions
12
phpstan.neon
12
phpstan.neon
|
|
@ -16,14 +16,17 @@ parameters:
|
|||
ignoreErrors:
|
||||
- '#Cannot access offset (.*?) on Illuminate\\Contracts\\Foundation\\Application#'
|
||||
- '#Cannot access offset (.*?) on Illuminate\\Contracts\\Config\\Repository#'
|
||||
-
|
||||
message: '#Call to an undefined (method|static method) Illuminate\\Database\\Eloquent\\(Model|Builder)#'
|
||||
paths:
|
||||
- src/Commands/CreatePendingTenants.php
|
||||
- src/Commands/ClearPendingTenants.php
|
||||
- src/Database/Concerns/PendingScope.php
|
||||
- src/Database/ParentModelScope.php
|
||||
-
|
||||
message: '#invalid type Laravel\\Telescope\\IncomingEntry#'
|
||||
paths:
|
||||
- src/Features/TelescopeTags.php
|
||||
-
|
||||
message: '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::getRelationshipToPrimaryModel\(\)#'
|
||||
paths:
|
||||
- src/Database/ParentModelScope.php
|
||||
-
|
||||
message: '#Parameter \#1 \$key of method Illuminate\\Contracts\\Cache\\Repository::put\(\) expects string#'
|
||||
paths:
|
||||
|
|
@ -44,6 +47,7 @@ parameters:
|
|||
message: '#Trying to invoke Closure\|null but it might not be a callable#'
|
||||
paths:
|
||||
- src/Database/DatabaseConfig.php
|
||||
- '#Method Stancl\\Tenancy\\Tenancy::cachedResolvers\(\) should return array#'
|
||||
|
||||
checkMissingIterableValueType: false
|
||||
treatPhpDocTypesAsCertain: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue