@@ -78,7 +78,7 @@ public static function matchAll($pattern, $subject, &$matches = null, $flags = 0
78
78
}
79
79
80
80
$ result = preg_match_all ($ pattern , $ subject , $ matches , $ flags , $ offset );
81
- if ($ result === false || $ result === null ) {
81
+ if ($ result === false ) {
82
82
throw PcreException::fromFunction ('preg_match_all ' , $ pattern );
83
83
}
84
84
@@ -100,7 +100,7 @@ public static function matchAll($pattern, $subject, &$matches = null, $flags = 0
100
100
public static function matchAllWithOffsets ($ pattern , $ subject , &$ matches , $ flags = 0 , $ offset = 0 )
101
101
{
102
102
$ result = preg_match_all ($ pattern , $ subject , $ matches , $ flags | PREG_OFFSET_CAPTURE , $ offset );
103
- if ($ result === false || $ result === null ) {
103
+ if ($ result === false ) {
104
104
throw PcreException::fromFunction ('preg_match_all ' , $ pattern );
105
105
}
106
106
@@ -221,7 +221,6 @@ public static function splitWithOffsets($pattern, $subject, $limit = -1, $flags
221
221
throw PcreException::fromFunction ('preg_split ' , $ pattern );
222
222
}
223
223
224
- // @phpstan-ignore-next-line See https://github.com/phpstan/phpstan/issues/6155
225
224
return $ result ;
226
225
}
227
226
0 commit comments