1
0
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:
Sami Mazouz
2024-08-02 12:49:34 +01:00
committed by GitHub
parent 2b56129d70
commit 770f9370af
40 changed files with 78 additions and 74 deletions

View File

@@ -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

View File

@@ -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