Skip to content

Commit 156097a

Browse files
author
Bernhard Schmitt
committed
Explicitly add prophecy package to requirements
1 parent 1323bbf commit 156097a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Domain/Component/PropType/PropTypeFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function fromReflectionProperty(\ReflectionProperty $property): Pr
6868
{
6969
if ($type = $property->getType()) {
7070
$nullable = $type->allowsNull();
71-
$type = (string) $type;
71+
$type = ltrim((string)$type, '?');
7272
switch ($type) {
7373
case 'string':
7474
return new StringPropType($nullable);

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"mikey179/vfsstream": "^1.6",
2323
"squizlabs/php_codesniffer": "^3.5",
2424
"jangregor/phpstan-prophecy": "^0.8.0",
25+
"phpspec/prophecy": "^1.15",
2526
"spatie/phpunit-snapshot-assertions": "^4.2"
2627
},
2728
"config": {

0 commit comments

Comments
 (0)