Skip to content

chore(tests): drop the E_DEPRECATED suppression from the .phpt files — stable z-engine raises none #38

Description

@lisachenko

All 121 .phpt files carry a third --INI-- line:

error_reporting=E_ALL & ~E_DEPRECATED

It guards against a dependency deprecation being prepended to captured output (PHPUnit's .phpt runner forces display_errors=1, so one deprecation would fail every --EXPECT-- block). The offender was z-engine's development line declaring implicitly nullable parameters; the stable releases now required (~8.4.2 || ~8.5.0, #37) declare them ?Type.

Verified by forcing error_reporting=E_ALL over every test's own --INI-- block on PHP 8.4.19 with z-engine 8.4.2: 121/121 pass. The same check on PHP 8.5.9 / z-engine 8.5.0 should be repeated before the change lands.

Work: remove the line from all 121 files and update AGENTS.md/README.md wherever the three mandatory --INI-- lines are documented. Purely mechanical; no source change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions