File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ public function getConfigTreeBuilder() : TreeBuilder
54
54
->defaultValue ([])
55
55
->prototype ('scalar ' )->end ()
56
56
->validate ()
57
- ->ifTrue (static function ($ v ) {
57
+ ->ifTrue (static function ($ v ) : bool {
58
58
return count ($ v ) === 0 ;
59
59
})
60
- ->thenInvalid ('At least one migrations path must be specified. ' )
60
+ ->thenInvalid ('At least one migration path must be specified. ' )
61
61
62
- ->ifTrue (static function ($ v ) {
62
+ ->ifTrue (static function ($ v ) : bool {
63
63
return count ($ v ) > 1 ;
64
64
})
65
65
->thenInvalid ('Maximum one migration path can be specified with the 2.x version. ' )
@@ -70,15 +70,15 @@ public function getConfigTreeBuilder() : TreeBuilder
70
70
->info ('Storage to use for migration status metadata. ' )
71
71
->children ()
72
72
->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 . ' )
74
74
->children ()
75
75
->scalarNode ('table_name ' )->defaultValue (null )->cannotBeEmpty ()->end ()
76
76
->scalarNode ('version_column_name ' )->defaultValue (null )->end ()
77
77
->scalarNode ('version_column_length ' )
78
78
->defaultValue (null )
79
79
->validate ()
80
- ->ifTrue (static function ($ v ) {
81
- return $ v < 1024 ;
80
+ ->ifTrue (static function ($ v ) : bool {
81
+ return $ v < 1024 ;
82
82
})
83
83
->thenInvalid ('The minimum length for the version column is 1024. ' )
84
84
->end ()
You can’t perform that action at this time.
0 commit comments