File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 66
77class Constant
88{
9- public const VERSION = '1.2.0 ' ;
9+ public const VERSION = '1.2.1 ' ;
1010}
Original file line number Diff line number Diff line change @@ -25,18 +25,19 @@ public function getConfigTreeBuilder()
2525 ->ifTrue (static function ($ v ) {
2626 return !is_array ($ v );
2727 })
28- ->then (static function ($ v ){
28+ ->then (static function ($ v ){
2929 return [[SchemaKey::CLASS_NAME => $ v , SchemaKey::AS => null ]];
3030 })
31- ->end ()
31+ ->end ()
3232 ->arrayPrototype ()
3333 ->beforeNormalization ()
3434 ->ifTrue (static function ($ v ) {
3535 return !is_array ($ v );
3636 })
3737 ->then (static function ($ v ){
3838 return [SchemaKey::CLASS_NAME => $ v , SchemaKey::AS => null ];
39- })->end ()
39+ })
40+ ->end ()
4041 ->children ()
4142 ->scalarNode (SchemaKey::CLASS_NAME )->end ()
4243 ->scalarNode (SchemaKey::AS )->defaultNull ()->end ()
Original file line number Diff line number Diff line change @@ -175,14 +175,14 @@ private function parseRawType(): array
175175 {
176176 return explode ('| ' , $ this ->rawType );
177177 }
178-
178+
179179 /**
180180 * Creates a type instance from a raw string
181181 * of the form 'bool|string|float|Custom|null'
182182 * @param string $t
183- * @return \static
183+ * @return VariableType
184184 */
185- public static function fromString (string $ t )
185+ public static function fromString (string $ t ): self
186186 {
187187 return new static ($ t );
188188 }
You can’t perform that action at this time.
0 commit comments