1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 07:35:29 +02:00

[ticket/13733] Add isInstantiable() check.

PHPBB3-13733
This commit is contained in:
David King 2015-05-24 01:32:01 -04:00
parent c485540f53
commit 9dc1729e37

View File

@ -152,7 +152,7 @@ class base implements \phpbb\extension\extension_interface
if (class_exists($migration))
{
$reflector = new \ReflectionClass($migration);
if ($reflector->isSubclassOf('\phpbb\db\migration\migration'))
if ($reflector->isSubclassOf('\phpbb\db\migration\migration') && $reflector->isInstantiable())
{
continue;
}