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
bug #34619 Restores preview mode support for Html and Serializer error renderers (yceruto)
This PR was merged into the 4.4 branch.
Discussion
----------
Restores preview mode support for Html and Serializer error renderers
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#34602
| License | MIT
| Doc PR | -
This restores the preview mode support for all error renderers.
Commits
-------
38493b3 Add preview mode support for Html and Serializer error renderers
thrownew \TypeError(sprintf('Argument 1 passed to %s() must be a boolean or a callable, %s given.', __METHOD__, \is_object($debug) ? \get_class($debug) : \gettype($debug)));
50
+
}
51
+
52
+
if (!\is_string($outputBuffer) && !\is_callable($outputBuffer)) {
53
+
thrownew \TypeError(sprintf('Argument 5 passed to %s() must be a string or a callable, %s given.', __METHOD__, \is_object($outputBuffer) ? \get_class($outputBuffer) : \gettype($outputBuffer)));
if (!\is_string($format) && !\is_callable($format)) {
36
38
thrownew \TypeError(sprintf('Argument 2 passed to %s() must be a string or a callable, %s given.', __METHOD__, \is_object($format) ? \get_class($format) : \gettype($format)));
37
39
}
38
40
41
+
if (!\is_bool($debug) && !\is_callable($debug)) {
42
+
thrownew \TypeError(sprintf('Argument 4 passed to %s() must be a boolean or a callable, %s given.', __METHOD__, \is_object($debug) ? \get_class($debug) : \gettype($debug)));
0 commit comments