Merge branch 'release/3.1'

This commit is contained in:
Dylan K. Taylor 2018-07-11 09:16:55 +01:00
commit 33ad4de981

View File

@ -782,7 +782,7 @@ class PluginManager{
$reflection = new \ReflectionClass(get_class($listener));
foreach($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method){
if(!$method->isStatic()){
if(!$method->isStatic() and $method->getDeclaringClass()->implementsInterface(Listener::class)){
$tags = Utils::parseDocComment((string) $method->getDocComment());
if(isset($tags["notHandler"])){
continue;