2026-09-06 22:10 UTC
It did not work as i expected… because we cant tell if the user passed in all of the arguments or if #PHP passed in additional default/optional arguments.
But I was able to achieve my goal and got the tests passing using good ol' `debug_backtrace(~DEBUG_BACKTRACE_PROVIDE_OBJECT)`.
https://3v4l.org/28O7r#veol
~DEBUG_BACKTRACE_PROVIDE_OBJECT (0): Omits index "object" and populates index "args"
Replies (1)
-
@ghostwriter@phpc.social 2026-09-07 00:26
Got exactly what i needed! https://3v4l.org/AquJa#v