File tree 1 file changed +29
-1
lines changed
SlevomatCodingStandard/Sniffs/TypeHints
1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 3
3
namespace SlevomatCodingStandard \Sniffs \TypeHints ;
4
4
5
5
use PHP_CodeSniffer \Files \File ;
6
+ use PHP_CodeSniffer \Sniffs \DeprecatedSniff ;
6
7
use PHP_CodeSniffer \Sniffs \Sniff ;
7
8
use SlevomatCodingStandard \Helpers \FixerHelper ;
8
9
use SlevomatCodingStandard \Helpers \FunctionHelper ;
22
23
use const T_VARIABLE ;
23
24
use const T_WHITESPACE ;
24
25
25
- class UnionTypeHintFormatSniff implements Sniff
26
+ /**
27
+ * @deprecated
28
+ */
29
+ class UnionTypeHintFormatSniff implements Sniff, DeprecatedSniff
26
30
{
27
31
28
32
public const CODE_DISALLOWED_WHITESPACE = 'DisallowedWhitespace ' ;
@@ -46,6 +50,30 @@ class UnionTypeHintFormatSniff implements Sniff
46
50
47
51
public ?string $ nullPosition = null ;
48
52
53
+ /**
54
+ * @codeCoverageIgnore
55
+ */
56
+ public function getDeprecationVersion (): string
57
+ {
58
+ return 'Slevomat Coding Standard 8.16.0 ' ;
59
+ }
60
+
61
+ /**
62
+ * @codeCoverageIgnore
63
+ */
64
+ public function getRemovalVersion (): string
65
+ {
66
+ return 'Slevomat Coding Standard 9.0.0 ' ;
67
+ }
68
+
69
+ /**
70
+ * @codeCoverageIgnore
71
+ */
72
+ public function getDeprecationMessage (): string
73
+ {
74
+ return 'Use SlevomatCodingStandard.TypeHints.DNFTypeHintFormat instead. ' ;
75
+ }
76
+
49
77
/**
50
78
* @return array<int, (int|string)>
51
79
*/
You can’t perform that action at this time.
0 commit comments