mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
fix: 2.0 bugs (#4011)
This commit is contained in:
@@ -52,10 +52,6 @@ conditionalTags:
|
||||
phpstan.rules.rule: %noUnnecessaryCollectionCall%
|
||||
Larastan\Larastan\Rules\OctaneCompatibilityRule:
|
||||
phpstan.rules.rule: %checkOctaneCompatibility%
|
||||
Larastan\Larastan\Rules\ModelProperties\ModelPropertyRule:
|
||||
phpstan.rules.rule: %checkModelProperties%
|
||||
Larastan\Larastan\Rules\ModelProperties\ModelPropertyStaticCallRule:
|
||||
phpstan.rules.rule: %checkModelProperties%
|
||||
Larastan\Larastan\Rules\UnusedViewsRule:
|
||||
phpstan.rules.rule: %checkUnusedViews%
|
||||
Larastan\Larastan\Rules\ModelAppendsRule:
|
||||
@@ -400,15 +396,9 @@ services:
|
||||
onlyMethods: %noUnnecessaryCollectionCallOnly%
|
||||
excludeMethods: %noUnnecessaryCollectionCallExcept%
|
||||
|
||||
-
|
||||
class: Larastan\Larastan\Rules\ModelProperties\ModelPropertyRule
|
||||
|
||||
-
|
||||
class: Larastan\Larastan\Rules\ModelAppendsRule
|
||||
|
||||
-
|
||||
class: Larastan\Larastan\Rules\ModelProperties\ModelPropertyStaticCallRule
|
||||
|
||||
-
|
||||
class: Larastan\Larastan\Types\GenericEloquentBuilderTypeNodeResolverExtension
|
||||
tags:
|
||||
@@ -450,9 +440,6 @@ services:
|
||||
-
|
||||
class: Larastan\Larastan\Properties\ModelPropertyHelper
|
||||
|
||||
-
|
||||
class: Larastan\Larastan\Rules\ModelProperties\ModelPropertiesRuleHelper
|
||||
|
||||
-
|
||||
class: Larastan\Larastan\Rules\ModelRuleHelper
|
||||
|
||||
|
@@ -1,5 +1,11 @@
|
||||
parameters:
|
||||
reportUnmatchedIgnoredErrors: false
|
||||
ignoreErrors:
|
||||
-
|
||||
identifier: missingType.iterableValue
|
||||
-
|
||||
identifier: missingType.generics
|
||||
|
||||
# Remove this group below with larastan 2.0 (i.e Flarum 2.0)
|
||||
- message: "#Relation '[A-z_-]+' is not found in [A-z\_]+ model.#"
|
||||
reportUnmatched: false
|
||||
|
Reference in New Issue
Block a user