You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(Messages): use Utils for setting default options
- Replaced direct calls to setDefault with Utils::methodNameOfSetDefault in multiple message classes.
- This change improves consistency and readability of the options configuration.
- Ensures a unified approach to setting default values across message classes.
Copy file name to clipboardExpand all lines: phpstan.neon.dist
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,7 @@ parameters:
190
190
- identifier: trait.unused
191
191
- message: '#^Call to an undefined method Symfony\\Component\\OptionsResolver\\OptionsResolver\:\:setOptions\(\)\.$#'
192
192
- message: '#^Call to function method_exists\(\) with \$this\(Guanguans\\Notify\\Foundation\\Message\) and ''(defaults|deprecated|normalizers)'' will always evaluate to true\.$#'
193
-
- message: '#^Cannot call method (setDefault|setOptions)\(\) on mixed\.$#'
193
+
- message: '#^Cannot call method (setDefault|setOptions|setAllowedTypes)\(\) on mixed\.$#'
194
194
- message: '#^Class Guanguans\\Notify\\.*\\Messages\\.*Message has PHPDoc tag @method for method .*\(\) parameter \#1 \$.* with no value type specified in iterable type array\.$#'
195
195
- message: '#^Cognitive complexity for "Guanguans\\Notify\\Foundation\\Message\:\:preConfigureOptionsResolver\(\)" is (\d|1\d), keep it under 8$#'
196
196
- message: '#^Cognitive complexity for "Guanguans\\Notify\\Foundation\\Support\\Arr\:\:forget\(\)" is (\d|1\d), keep it under 8$#'
0 commit comments