diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php index 4ae068acbd..edaeab0522 100644 --- a/phpBB/phpbb/db/migrator.php +++ b/phpBB/phpbb/db/migrator.php @@ -339,9 +339,10 @@ class migrator $depend = $this->get_valid_name($depend); // Test all possible namings before throwing exception - if ($this->unfulfillable($depend) !== false) + $missing = $this->unfulfillable($depend); + if ($missing !== false) { - throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $depend); + throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $missing); } if (!isset($this->migration_state[$depend]) ||