mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 06:20:46 +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)
|
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)
|
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))
|
if (class_exists($migration))
|
||||||
{
|
{
|
||||||
$reflector = new \ReflectionClass($migration);
|
$reflector = new \ReflectionClass($migration);
|
||||||
|
Reference in New Issue
Block a user