We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1323bbf commit 156097aCopy full SHA for 156097a
2 files changed
Classes/Domain/Component/PropType/PropTypeFactory.php
@@ -68,7 +68,7 @@ public static function fromReflectionProperty(\ReflectionProperty $property): Pr
68
{
69
if ($type = $property->getType()) {
70
$nullable = $type->allowsNull();
71
- $type = (string) $type;
+ $type = ltrim((string)$type, '?');
72
switch ($type) {
73
case 'string':
74
return new StringPropType($nullable);
composer.json
@@ -22,6 +22,7 @@
22
"mikey179/vfsstream": "^1.6",
23
"squizlabs/php_codesniffer": "^3.5",
24
"jangregor/phpstan-prophecy": "^0.8.0",
25
+ "phpspec/prophecy": "^1.15",
26
"spatie/phpunit-snapshot-assertions": "^4.2"
27
},
28
"config": {
0 commit comments