File tree 3 files changed +33
-1
lines changed
tests/Integration/Fixtures
3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 526
526
->withConfiguredRule (ConcatSpaceFixer::class, ['spacing ' => 'one ' ])
527
527
// Removes `@param` and `@return` tags that don't provide any useful information
528
528
->withConfiguredRule (NoSuperfluousPhpdocTagsFixer::class, [
529
- 'allow_mixed ' => true , // allow `@mixed` annotations to be preserved
530
529
'allow_unused_params ' => false , // whether param annotation without actual signature is allowed
531
530
'remove_inheritdoc ' => true , // remove @inheritDoc tags
532
531
])
Original file line number Diff line number Diff line change @@ -22,4 +22,17 @@ class PhpDoc
22
22
{
23
23
return $ first . $ third ;
24
24
}
25
+
26
+ public function methodWithTypesInTypeHints (int $ value , mixed $ mixedType ): bool
27
+ {
28
+ return $ value > 3 ? true : false ;
29
+ }
30
+
31
+ /**
32
+ * @param string $stringParam This phpdoc should be preserved, because it contains some comment for $stringParam.
33
+ */
34
+ public function methodWithMeaningfulParamComment (int $ intParam , string $ stringParam ): void
35
+ {
36
+ // Do nothing.
37
+ }
25
38
}
Original file line number Diff line number Diff line change @@ -26,4 +26,24 @@ class PhpDoc
26
26
{
27
27
return $ first . $ third ;
28
28
}
29
+
30
+ /**
31
+ * @param int $value
32
+ * @param mixed $mixedType
33
+ * @return bool
34
+ */
35
+ public function methodWithTypesInTypeHints ($ value , $ mixedType )
36
+ {
37
+ return $ value > 3 ? true : false ;
38
+ }
39
+
40
+ /**
41
+ * @param int $intParam
42
+ * @param string $stringParam This phpdoc should be preserved, because it contains some comment for $stringParam.
43
+ * @return void
44
+ */
45
+ public function methodWithMeaningfulParamComment (int $ intParam , string $ stringParam ): void
46
+ {
47
+ // Do nothing.
48
+ }
29
49
}
You can’t perform that action at this time.
0 commit comments