Commit d7c22d2
committed
Code Modernization: Check the input type in
This fixes a `preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated` notice on PHP 8.1.
The behavior for `null` and `string` input is covered by the existing `Tests_Functions::test_validate_file()` test.
Effect: Errors down by 238, assertions up by 1920, failures down by 1.
Props jrf, hellofromTonya, SergeyBiryukov.
See #53635.
git-svn-id: https://develop.svn.wordpress.org/trunk@51625 602fd350-edb4-49c9-b593-d223f7449a82validate_file().1 parent d93f76d commit d7c22d2
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5709 | 5709 | | |
5710 | 5710 | | |
5711 | 5711 | | |
| 5712 | + | |
| 5713 | + | |
| 5714 | + | |
| 5715 | + | |
5712 | 5716 | | |
5713 | 5717 | | |
5714 | 5718 | | |
| |||
0 commit comments