Commit c14709f
committed
PHPCS: selectively ignore some flagged PHP function deprecations
The PHPCS native `Generic.PHP.DeprecatedFunctions` sniff will flag calls to deprecated functions.
As of PHP 8.5, PHP has deprecated a number of functions related to previously done resource to object migrations.
For the purposes of this package, we are testing the `assertClosedResource()` polyfill. These tests use a number of deprecated functions, but these tests will only ever be run on PHP versions where the return value from the involved extension was still a resource.
In other words, the PHP 8.5 deprecations will never be hit and the PHPCS sniff flagging them can be ignored.1 parent 4eadd8b commit c14709f
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| |||
0 commit comments