#1519·mockery

Deprecate argument matcher global helper functions

Author: ghostwriterCreated Sep 5, 2026Updated Sep 5, 2026
LabelsMinorDeprecated

[!WARNING] The following global functions in library/helpers.php are planned for deprecation in 1.7.0 and removal in 2.0.0.

Deprecated Replacement
\andAnyOtherArgs() \Mockery\Argument::andAnyOtherArgs()
\andAnyOthers() \Mockery\Argument::andAnyOthers()
\anyArgs() \Mockery\Argument::anyArgs()

[!IMPORTANT] The global functions will remain available throughout the deprecation period to avoid unnecessarily breaking existing test suites.

Their existing behavior will remain unchanged during this period.

[!TIP] The [mockery/rector-extension] package will provide automated migration of existing test suites from the deprecated global functions to the corresponding \Mockery\Argument static factory methods.