1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

[ticket/15274] Allow "custom" migrations to use parameters

Remove references in migration tool.

PHPBB3-15274
This commit is contained in:
javiexin 2017-07-16 11:58:54 +02:00 committed by Marc Alexander
parent 5c001df380
commit 5a0c9763d1
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
4 changed files with 6 additions and 6 deletions

View File

@ -23,11 +23,11 @@ class phpbb_dbal_migration_if extends \phpbb\db\migration\migration
return array(
array('if', array(
true,
array('custom', array(array(&$this, 'test_true'))),
array('custom', array(array($this, 'test_true'))),
)),
array('if', array(
false,
array('custom', array(array(&$this, 'test_false'))),
array('custom', array(array($this, 'test_false'))),
)),
);
}

View File

@ -23,11 +23,11 @@ class phpbb_dbal_migration_if_params extends \phpbb\db\migration\migration
return array(
array('if', array(
true,
array('custom', array(array(&$this, 'test'), array('true'))),
array('custom', array(array($this, 'test'), array('true'))),
)),
array('if', array(
false,
array('custom', array(array(&$this, 'test'), array('false'))),
array('custom', array(array($this, 'test'), array('false'))),
)),
);
}

View File

@ -21,7 +21,7 @@ class phpbb_dbal_migration_recall extends \phpbb\db\migration\migration
function update_data()
{
return array(
array('custom', array(array(&$this, 'test_call'))),
array('custom', array(array($this, 'test_call'))),
);
}

View File

@ -21,7 +21,7 @@ class phpbb_dbal_migration_recall_params extends \phpbb\db\migration\migration
function update_data()
{
return array(
array('custom', array(array(&$this, 'test_call'), array(5))),
array('custom', array(array($this, 'test_call'), array(5))),
);
}