In https://github.com/geekcell/ddd-symfony-bundle/pull/46 the getNestedExceptions call was replaced with getWrappedExceptions, however the returned array from getWrappedExceptions is an associate array where the exception name is the key, previously the array was just a list.
This PR fixes the behaviour so that we array_shift off the first exception from the wrapped exceptions array and throw it if it's thruthy. Otherwise throw the HandlerFailedException itself
In https://github.com/geekcell/ddd-symfony-bundle/pull/46 the
getNestedExceptions
call was replaced withgetWrappedExceptions
, however the returned array fromgetWrappedExceptions
is an associate array where the exception name is the key, previously the array was just a list.This PR fixes the behaviour so that we
array_shift
off the first exception from the wrapped exceptions array and throw it if it's thruthy. Otherwise throw theHandlerFailedException
itself