Skip to content

Commit 7b6b6ed

Browse files
committed
Use more proper name for deprecation params method
1 parent 44b7148 commit 7b6b6ed

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

DependencyInjection/Configuration.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function getConfigTreeBuilder() : TreeBuilder
4444
$rootNode
4545
->children()
4646
->scalarNode('name')
47-
->setDeprecated(...$this->getParamDeprecationMsg('The "%node%" option is deprecated.'))
47+
->setDeprecated(...$this->getDeprecationParams('The "%node%" option is deprecated.'))
4848
->defaultValue('Application Migrations')
4949
->end()
5050

@@ -92,27 +92,27 @@ public function getConfigTreeBuilder() : TreeBuilder
9292

9393
->scalarNode('dir_name')
9494
->defaultValue('%kernel.root_dir%/DoctrineMigrations')->cannotBeEmpty()
95-
->setDeprecated(...$this->getParamDeprecationMsg('The "%node%" option is deprecated. Use "migrations_paths" instead.'))
95+
->setDeprecated(...$this->getDeprecationParams('The "%node%" option is deprecated. Use "migrations_paths" instead.'))
9696
->end()
9797
->scalarNode('namespace')
9898
->defaultValue('Application\Migrations')->cannotBeEmpty()
99-
->setDeprecated(...$this->getParamDeprecationMsg('The "%node%" option is deprecated. Use "migrations_paths" instead.'))
99+
->setDeprecated(...$this->getDeprecationParams('The "%node%" option is deprecated. Use "migrations_paths" instead.'))
100100
->end()
101101
->scalarNode('table_name')
102102
->defaultValue('migration_versions')->cannotBeEmpty()
103-
->setDeprecated(...$this->getParamDeprecationMsg('The "%node%" option is deprecated. Use "storage.table_storage.table_name" instead.'))
103+
->setDeprecated(...$this->getDeprecationParams('The "%node%" option is deprecated. Use "storage.table_storage.table_name" instead.'))
104104
->end()
105105
->scalarNode('column_name')
106106
->defaultValue('version')
107-
->setDeprecated(...$this->getParamDeprecationMsg('The "%node%" option is deprecated. Use "storage.table_storage.version_column_name" instead.'))
107+
->setDeprecated(...$this->getDeprecationParams('The "%node%" option is deprecated. Use "storage.table_storage.version_column_name" instead.'))
108108
->end()
109109
->scalarNode('column_length')
110110
->defaultValue(14)
111-
->setDeprecated(...$this->getParamDeprecationMsg('The "%node%" option is deprecated. Use "storage.table_storage.version_column_length" instead.'))
111+
->setDeprecated(...$this->getDeprecationParams('The "%node%" option is deprecated. Use "storage.table_storage.version_column_length" instead.'))
112112
->end()
113113
->scalarNode('executed_at_column_name')
114114
->defaultValue('executed_at')
115-
->setDeprecated(...$this->getParamDeprecationMsg('The "%node%" option is deprecated. Use "storage.table_storage.executed_at_column_name" instead.'))
115+
->setDeprecated(...$this->getDeprecationParams('The "%node%" option is deprecated. Use "storage.table_storage.executed_at_column_name" instead.'))
116116
->end()
117117
->scalarNode('all_or_nothing')->defaultValue(false)->end()
118118
->scalarNode('custom_template')->defaultValue(null)->end()
@@ -179,7 +179,7 @@ private function getOrganizeMigrationsModes() : array
179179
*
180180
* @return string[]
181181
*/
182-
private function getParamDeprecationMsg(string $message) : array
182+
private function getDeprecationParams(string $message) : array
183183
{
184184
if (method_exists(BaseNode::class, 'getDeprecation')) {
185185
return [

0 commit comments

Comments
 (0)