Commit 32caf26
phpunit: Use "@" instead of temporary error_reporting override
The native silence operator, or previously wikimedia/at-ease, are the
preferred ways to silence an intentional warning rather than stateful
and global overrides to error_reporting. See also T253461.
== Why now ==
Out of dozens of possible almost-off/neutral states, this code used
E_USER_ERROR, presumably because it is the only error code we never
use. Either way, referencing the E_USER_ERROR constant causes a
deprecation warning in PHP 8.4+.
Bug: T379445
Change-Id: I1f2450f53b6b673f1d5c09f42c2a10f45567962b1 parent 34770a9 commit 32caf26
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
238 | 236 | | |
239 | | - | |
| 237 | + | |
| 238 | + | |
240 | 239 | | |
241 | 240 | | |
242 | 241 | | |
| |||
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
252 | | - | |
253 | | - | |
254 | 251 | | |
255 | 252 | | |
256 | 253 | | |
0 commit comments