You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library gives you a way to ensure `preg_*` functions do not fail silently, returning
7
7
unexpected `null`s that may not be handled.
8
8
9
-
As of 2.0 this library also enforces [`PREG_UNMATCHED_AS_NULL`](#preg_unmatched_as_null) usage for all matching functions, [read more below](#preg_unmatched_as_null) to understand the implications.
9
+
As of 3.0 this library enforces [`PREG_UNMATCHED_AS_NULL`](#preg_unmatched_as_null) usage
10
+
for all matching and replaceCallback functions, [read more below](#preg_unmatched_as_null)
11
+
to understand the implications.
10
12
11
13
It thus makes it easier to work with static analysis tools like PHPStan or Psalm as it
12
14
simplifies and reduces the possible return values from all the `preg_*` functions which
0 commit comments