mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
[ticket/13733] Update comment explaining migration class validation
PHPBB3-13733
This commit is contained in:
@@ -141,14 +141,10 @@ class base implements \phpbb\extension\extension_interface
|
||||
|
||||
if ($validate_classes)
|
||||
{
|
||||
// Unset classes that do not exist or do not extend the
|
||||
// abstract class phpbb\db\migration\migration
|
||||
foreach ($migrations as $key => $migration)
|
||||
{
|
||||
// If the class exists and is a subclass of the
|
||||
// \phpbb\db\migration\migration abstract class
|
||||
// we skip it.
|
||||
|
||||
// Otherwise, i.e. if it doesn't exist or it is
|
||||
// not an extend the abstract class, we unset it
|
||||
if (class_exists($migration))
|
||||
{
|
||||
$reflector = new \ReflectionClass($migration);
|
||||
|
Reference in New Issue
Block a user