Skip to content

Commit b6442fd

Browse files
committed
Fix use definition
1 parent 6fd8631 commit b6442fd

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/Application/Shared/Constant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66

77
class Constant
88
{
9-
public const VERSION = '1.2.0';
9+
public const VERSION = '1.2.1';
1010
}

src/Domain/Definition/Schema/UseKeywordDefinitionSchema.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

src/Domain/Definition/VariableType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)