View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0035284 | mantisbt | api rest | public | 2025年01月31日 19:20 | 2026年07月06日 13:08 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
| Summary | 0035284: Allow REST API to run on PHP 8.4 ignoring E_DEPRECATED notices | ||||
| Description | Issue 0032866 implemented a workaround to run Slim 3.x on PHP 8.1 using a custom error handler to catch deprecation warnings. Some further adjustments are needed to ignore new warnings, some of which are triggered before the error handler is in place. Deprecated: Implicitly marking parameter ... as nullable is deprecated, the explicit nullable type must be used instead
| ||||
| Tags | PHP 8.1 | ||||
We need to override the error_reporting() when initializing Slim framework to squelch initial deprecation warnings, and ignore a few additional classes in the custom error handler.
MantisBT: master d5a30a0c
2025年01月31日 19:28
Details Diff Catch Slim 3.x deprecated warnings on PHP 8.4
Override error_reporting to ignore E_DEPRECATED when initializing Slim
framework to squelch initial deprecation warnings, ignore a few
additional classes in the custom error handler, then restore
error_reporting to its original state before executing the request.
Fixes 0035284 Affected Issues
0035284
Copyright © 2000 - 2026 MantisBT Team
Contact administrator for assistance