Skip to content

Commit c9388fc

Browse files
goetasgreg0ire
andauthored
Apply suggestions from code review
Co-Authored-By: Grégoire Paris <[email protected]>
1 parent 40d722f commit c9388fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DependencyInjection/Configuration.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ public function getConfigTreeBuilder() : TreeBuilder
5454
->defaultValue([])
5555
->prototype('scalar')->end()
5656
->validate()
57-
->ifTrue(static function ($v) {
57+
->ifTrue(static function ($v) : bool {
5858
return count($v) === 0;
5959
})
60-
->thenInvalid('At least one migrations path must be specified.')
60+
->thenInvalid('At least one migration path must be specified.')
6161

62-
->ifTrue(static function ($v) {
62+
->ifTrue(static function ($v) : bool {
6363
return count($v) > 1;
6464
})
6565
->thenInvalid('Maximum one migration path can be specified with the 2.x version.')
@@ -70,15 +70,15 @@ public function getConfigTreeBuilder() : TreeBuilder
7070
->info('Storage to use for migration status metadata.')
7171
->children()
7272
->arrayNode('table_storage')
73-
->info('The default metadata storage, implemented as table in the database.')
73+
->info('The default metadata storage, implemented as database table.')
7474
->children()
7575
->scalarNode('table_name')->defaultValue(null)->cannotBeEmpty()->end()
7676
->scalarNode('version_column_name')->defaultValue(null)->end()
7777
->scalarNode('version_column_length')
7878
->defaultValue(null)
7979
->validate()
80-
->ifTrue(static function ($v) {
81-
return $v< 1024;
80+
->ifTrue(static function ($v) : bool {
81+
return $v < 1024;
8282
})
8383
->thenInvalid('The minimum length for the version column is 1024.')
8484
->end()

0 commit comments

Comments
 (0)