File tree Expand file tree Collapse file tree 4 files changed +1
-47
lines changed
tests/UnitDeprecated/Position Expand file tree Collapse file tree 4 files changed +1
-47
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ Please also have a look at our
80
80
81
81
### Removed
82
82
83
+ - Remove ` Rule::getColNo() ` (use ` getColumnNumber() ` instead) (#1287 )
83
84
- Passing a string as the first argument to ` getAllValues() ` is no longer
84
85
supported and will not work;
85
86
the search pattern should now be passed as the second argument (#1243 )
Original file line number Diff line number Diff line change @@ -47,14 +47,6 @@ public function getColumnNumber(): ?int
47
47
return $ this ->columnNumber ;
48
48
}
49
49
50
- /**
51
- * @return int<0, max>
52
- */
53
- public function getColNo (): int
54
- {
55
- return $ this ->getColumnNumber () ?? 0 ;
56
- }
57
-
58
50
/**
59
51
* @param int<0, max>|null $lineNumber
60
52
* @param int<0, max>|null $columnNumber
Original file line number Diff line number Diff line change @@ -28,13 +28,6 @@ public function getLineNo(): int;
28
28
*/
29
29
public function getColumnNumber (): ?int ;
30
30
31
- /**
32
- * @return int<0, max>
33
- *
34
- * @deprecated in version 8.9.0, will be removed in v9.0. Use `getColumnNumber()` instead.
35
- */
36
- public function getColNo (): int ;
37
-
38
31
/**
39
32
* @param int<0, max>|null $lineNumber
40
33
* Providing zero for this parameter is deprecated in version 8.9.0, and will not be supported from v9.0.
Original file line number Diff line number Diff line change @@ -77,38 +77,6 @@ public function getLineNoReturnsZeroAfterLineNumberCleared(): void
77
77
self ::assertSame (0 , $ this ->subject ->getLineNo ());
78
78
}
79
79
80
- /**
81
- * @test
82
- */
83
- public function getColNoInitiallyReturnsZero (): void
84
- {
85
- self ::assertSame (0 , $ this ->subject ->getColNo ());
86
- }
87
-
88
- /**
89
- * @test
90
- *
91
- * @dataProvider provideColumnNumber
92
- */
93
- public function getColNoReturnsColumnNumberSet (int $ columnNumber ): void
94
- {
95
- $ this ->subject ->setPosition (1 , $ columnNumber );
96
-
97
- self ::assertSame ($ columnNumber , $ this ->subject ->getColNo ());
98
- }
99
-
100
- /**
101
- * @test
102
- */
103
- public function getColNoReturnsZeroAfterColumnNumberCleared (): void
104
- {
105
- $ this ->subject ->setPosition (1 , 99 );
106
-
107
- $ this ->subject ->setPosition (2 );
108
-
109
- self ::assertSame (0 , $ this ->subject ->getColNo ());
110
- }
111
-
112
80
/**
113
81
* @test
114
82
*/
You can’t perform that action at this time.
0 commit comments