File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
SlevomatCodingStandard/Sniffs/TypeHints Expand file tree Collapse file tree 1 file changed +20
-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,21 @@ class UnionTypeHintFormatSniff implements Sniff
46
50
47
51
public ?string $ nullPosition = null ;
48
52
53
+ public function getDeprecationVersion (): string
54
+ {
55
+ return 'Slevomat Coding Standard 8.16.0 ' ;
56
+ }
57
+
58
+ public function getRemovalVersion (): string
59
+ {
60
+ return 'Slevomat Coding Standard 9.0.0 ' ;
61
+ }
62
+
63
+ public function getDeprecationMessage (): string
64
+ {
65
+ return 'Use SlevomatCodingStandard.TypeHints.DNFTypeHintFormat instead. ' ;
66
+ }
67
+
49
68
/**
50
69
* @return array<int, (int|string)>
51
70
*/
You can’t perform that action at this time.
0 commit comments