You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Problem with Consistence.Exceptions.ExceptionDeclaration #47
Is this the whole class? As in there is no namespace? (I see no PHP open tag and Exception is not used while Throwable is, so it seems pretty suspicious to me).
Activity
VasekPurchart commentedon Jul 31, 2018
Is this the whole class? As in there is no namespace? (I see no PHP open tag and
Exceptionis not used whileThrowableis, so it seems pretty suspicious to me).lookyman commentedon Jul 31, 2018
Nope, of course it's not a whole class 😊 It's just an excerpt to show the issue. The problem seems to be here.
miroslavhajek commentedon Dec 29, 2021
This problem is not fixed in https://github.com/consistence-community/coding-standard/pull/3/files - condition accepts only FCQN.
Use
instead of line 119 where was added:
$lastArgument->getTypeHint() !== '?\Throwable'