Use statement for RuntimeException required in class ContainerTrait
hwmaier opened this issue · comments
A use statement needs to be added to class ContainerTrait
for the RuntimeException
like shown below:
<?php
namespace Psr7Middlewares\Utils;
use Interop\Container\ContainerInterface;
use InvalidArgumentException;
use RuntimeException;
otherwise the RunTimeException
class will not be found when thrown as it is looked up in local namespace.
Good catch! Fixed in the new version.
thank you