Closed PBXg33k closed 8 years ago
Ok, i traced the error back to a design change introduced in PHP7.
The error is caused by a "TypeError", which extends the "Error" base class. Since Error doesn't extends Exception it doesn't get catched.
Updating the supports() method in ArticleVoter.php from
}
catch(\Exception $e)
{
return false;
}
to
catch(\Exception $e)
{
return false;
}
catch(\Error $e)
{
return false;
}
Created a quick PR with my change that worked on my local development server (Debian, PHP 7.0.2)
As possible solution https://gist.github.com/inri13666/fcdcf58a6678d07f0c47c5f707c782c5
After following the install instructions i am presented with the following exception when trying to login.
Any idea where i might have made a mistake?
Here's the plain text stack trace: ` [1] Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to ED\BlogBundle\Security\Authorization\Voter\ArticleVoter::__construct() must be an instance of ED\BlogBundle\Security\ACL\ArticlePermissionMap, none given, called in /srv/mikudb-symfony2-dev/vendor/ed/blog-bundle/Security/Authorization/Voter/ArticleVoter.php on line 37 at n/a in /srv/mikudb-symfony2-dev/vendor/ed/blog-bundle/Security/Authorization/Voter/ArticleVoter.php line 22
`