mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/13733] Update comment explaining migration class validation
PHPBB3-13733
This commit is contained in:
parent
0178c27092
commit
b908524853
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue