PHP7 changes the type required for exception handler
Bug 1575969. In PHP7 some errors throw an Error object (to
the exception handler) instead of generating an error
(handled by the error handler). The official way to make
an exception handler that will work in PHP 5 & 7, is to
leave off the parameter's type declaration.
Change-Id: I5fc1c3765d5a311eb499d62915e676f8d9ee07a0
behatnotneeded: Covered by existing tests
(cherry picked from commit c3d7f4f658409e200ba22a208e770efb3584649e)
Reviewed: https:/ /reviews. mahara. org/6444 /git.mahara. org/mahara/ mahara/ commit/ ede1f0b96c0120a 7d4a7838fbc7979 8b80bf696f
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 1.10_STABLE
commit ede1f0b96c0120a 7d4a7838fbc7979 8b80bf696f
Author: Aaron Wells <email address hidden>
Date: Thu Apr 28 11:32:01 2016 +1200
PHP7 changes the type required for exception handler
Bug 1575969. In PHP7 some errors throw an Error object (to
the exception handler) instead of generating an error
(handled by the error handler). The official way to make
an exception handler that will work in PHP 5 & 7, is to
leave off the parameter's type declaration.
Change-Id: I5fc1c3765d5a31 1eb499d62915e67 6f8d9ee07a0 00ba22a208e770e fb3584649e)
behatnotneeded: Covered by existing tests
(cherry picked from commit c3d7f4f658409e2