You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 381e820
Browse filesBrowse the repository at this point in the historyBrowse files
Update tests for lossy bool conversion deprecation
Tests which only exist to pass each type to one parameter of a function (such as the "different data types" variation tests and "invalid params" tests) are removed, as this type juggling is global behavior already covered by the Zend type declaration tests. Other tests which included booleans in their list of int, float, or string inputs, or other scalars in their list of bool inputs, no longer pass them, so they won't need updating again when the deprecation becomes a TypeError. The fscanf() tests which write booleans to a file as test data now convert them to strings explicitly.
The deprecations are recorded only in tests of the coercion behavior itself, such as the scalar and union type declaration tests, exit() values, and the NAN coercion tests, and in the regression test for bug #79919, which needs the bool returned by error_log() to reproduce the bug. The GH-22112 test now ignores the deprecation in its error handler, so it continues to cover an exception thrown by the NAN warning.
The 32-bit and non-Windows variants of affected tests were updated to match, but could not be run locally.
0 commit comments