Closed
Description
Symfony version(s) affected: 4.1.2 (appears to affect 4.1.0)
Description
Debug exceptions pass an invalid parameter when $previous
is set. e.g:
Uncaught TypeError: Argument 6 passed to Symfony\Component\Debug\Exception\FatalErrorException::__construct() must be of the type integer or null, object given,
Classes that appear to be affected:
How to reproduce
Trigger an undefined method, class, or function with another exception.
Possible Solution
- Accept an object as the 6th parameter (BC issue?)
- Don't pass
$previous
to theFatalErrorException
constructor (potentially use a setter?)