File tree Expand file tree Collapse file tree 9 files changed +11
-70
lines changed Expand file tree Collapse file tree 9 files changed +11
-70
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public static function getValidBinarySequences()
34
34
];
35
35
}
36
36
37
- /** @return list<array{mixed }> */
37
+ /** @return list<array{string }> */
38
38
public static function getInvalidBinarySequences ()
39
39
{
40
40
return [
@@ -43,13 +43,6 @@ public static function getInvalidBinarySequences()
43
43
['123456789012345 ' ],
44
44
['12345678901234567 ' ],
45
45
['This one is completely wrong. ' ],
46
- // 5 bytes instead of 4.
47
- [123 ],
48
- [1.3 ],
49
- [array ()],
50
- [(object ) array ()],
51
- [null ],
52
- [true ],
53
46
];
54
47
}
55
48
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public static function getValidBinarySequences()
33
33
];
34
34
}
35
35
36
- /** @return list<array{mixed }> */
36
+ /** @return list<array{string }> */
37
37
public static function getInvalidBinarySequences ()
38
38
{
39
39
return [
@@ -42,13 +42,6 @@ public static function getInvalidBinarySequences()
42
42
['123456789012345 ' ],
43
43
['12345678901234567 ' ],
44
44
['This one is completely wrong. ' ],
45
- // 5 bytes instead of 4.
46
- [123 ],
47
- [1.3 ],
48
- [array ()],
49
- [(object ) array ()],
50
- [null ],
51
- [true ],
52
45
];
53
46
}
54
47
}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public static function getValidIpAddresses()
49
49
return array_merge (self ::getValidBinarySequences (), self ::getValidProtocolIpAddresses ());
50
50
}
51
51
52
- /** @return list<array{mixed }> */
52
+ /** @return list<array{string }> */
53
53
public static function getInvalidIpAddresses ()
54
54
{
55
55
return [
@@ -60,12 +60,6 @@ public static function getInvalidIpAddresses()
60
60
['This one is completely wrong. ' ],
61
61
// 5 bytes instead of 4.
62
62
[pack ('H* ' , '20010db80 ' )],
63
- [123 ],
64
- [1.3 ],
65
- [array ()],
66
- [(object ) array ()],
67
- [null ],
68
- [true ],
69
63
['12345 ' ],
70
64
['123 ' ],
71
65
];
@@ -87,19 +81,12 @@ public static function getValidCidrValues()
87
81
];
88
82
}
89
83
90
- /** @return list<array{mixed }> */
84
+ /** @return list<array{int }> */
91
85
public static function getInvalidCidrValues ()
92
86
{
93
87
return [
94
88
[-1 ],
95
89
[33 ],
96
- ['0 ' ],
97
- ['128 ' ],
98
- [12.3 ],
99
- [true ],
100
- [null ],
101
- [[]],
102
- [(object ) []],
103
90
];
104
91
}
105
92
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public static function getValidIpAddresses()
48
48
return array_merge (self ::getValidBinarySequences (), self ::getValidProtocolIpAddresses ());
49
49
}
50
50
51
- /** @return list<array{mixed }> */
51
+ /** @return list<array{string }> */
52
52
public static function getInvalidIpAddresses ()
53
53
{
54
54
return [
@@ -60,12 +60,6 @@ public static function getInvalidIpAddresses()
60
60
['This one is completely wrong. ' ],
61
61
// 15 bytes instead of 16.
62
62
[pack ('H* ' , '20010db8000000000a608a2e037073 ' )],
63
- [123 ],
64
- [1.3 ],
65
- [array ()],
66
- [(object ) array ()],
67
- [null ],
68
- [true ],
69
63
['12345678901234567 ' ],
70
64
['123456789012345 ' ],
71
65
];
@@ -86,19 +80,12 @@ public static function getValidCidrValues()
86
80
];
87
81
}
88
82
89
- /** @return list<array{mixed }> */
83
+ /** @return list<array{int }> */
90
84
public static function getInvalidCidrValues ()
91
85
{
92
86
return [
93
87
[-1 ],
94
88
[129 ],
95
- ['0 ' ],
96
- ['128 ' ],
97
- [12.3 ],
98
- [true ],
99
- [null ],
100
- [[]],
101
- [(object ) []],
102
89
];
103
90
}
104
91
Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ public static function getInvalidIpAddresses()
90
90
['This one is completely wrong. ' ],
91
91
// 15 bytes instead of 16.
92
92
[pack ('H* ' , '20010db8000000000a608a2e037073 ' )],
93
- [123 ],
94
- [1.3 ],
95
- [array ()],
96
- [(object ) array ()],
97
- [null ],
98
- [true ],
99
93
['12345678901234567 ' ],
100
94
['123456789012345 ' ],
101
95
];
Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ public static function getValidIpAddresses()
18
18
return array_merge ($ valid , $ invalid );
19
19
}
20
20
21
- /** @return array<array{mixed }> */
21
+ /** @return array<array{string }> */
22
22
public static function getInvalidIpAddresses ()
23
23
{
24
24
return [
25
25
[pack ('H* ' , '20010db8000000000a608a2e037073 ' )],
26
26
[pack ('H* ' , '20010db8000000000a608a2e0370734556 ' )],
27
- [123 ],
28
27
['12345678901234567 ' ],
29
28
['123456789012345 ' ],
30
29
];
Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ public static function getValidIpAddresses()
18
18
return array_merge ($ valid , $ invalid );
19
19
}
20
20
21
- /** @return list<array{mixed }> */
21
+ /** @return list<array{string }> */
22
22
public static function getInvalidIpAddresses ()
23
23
{
24
24
return [
25
25
[pack ('H* ' , '20010db8000000000a608a2e037073 ' )],
26
26
[pack ('H* ' , '20010db8000000000a608a2e0370734556 ' )],
27
- [123 ],
28
27
['12345678901234567 ' ],
29
28
['123456789012345 ' ],
30
29
];
Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ public static function getValidIpAddresses()
18
18
return array_merge ($ valid , $ invalid );
19
19
}
20
20
21
- /** @return list<array{mixed }> */
21
+ /** @return list<array{string }> */
22
22
public static function getInvalidIpAddresses ()
23
23
{
24
24
return [
25
25
[pack ('H* ' , '20010db8000000000a608a2e037073 ' )],
26
26
[pack ('H* ' , '20010db8000000000a608a2e0370734556 ' )],
27
- [123 ],
28
27
['12345678901234567 ' ],
29
28
['123456789012345 ' ],
30
29
];
Original file line number Diff line number Diff line change @@ -32,31 +32,21 @@ public static function getBinaryData()
32
32
];
33
33
}
34
34
35
- /** @return list<array{mixed }> */
35
+ /** @return list<array{string }> */
36
36
public static function getInvalidHex ()
37
37
{
38
38
return [
39
- [1 ],
40
- [1.2 ],
41
- [null ],
42
- [[]],
43
- [new \stdClass ],
44
39
['1 ' ],
45
40
['123 ' ],
46
41
['abcdeg ' ],
47
42
['29C 6E ' ],
48
43
];
49
44
}
50
45
51
- /** @return list<array{mixed }> */
46
+ /** @return list<array{string }> */
52
47
public static function getInvalidHumanReadable ()
53
48
{
54
49
return [
55
- [1 ],
56
- [1.2 ],
57
- [null ],
58
- [[]],
59
- [new \stdClass ],
60
50
['1 ' ],
61
51
['010 ' ],
62
52
['101210 ' ],
You can’t perform that action at this time.
0 commit comments