Skip to content

Commit

Permalink
Explicitly add prophecy package to requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Nov 16, 2022
1 parent 1323bbf commit 156097a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Component/PropType/PropTypeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function fromReflectionProperty(\ReflectionProperty $property): Pr
{
if ($type = $property->getType()) {
$nullable = $type->allowsNull();
$type = (string) $type;
$type = ltrim((string)$type, '?');
switch ($type) {
case 'string':
return new StringPropType($nullable);
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"mikey179/vfsstream": "^1.6",
"squizlabs/php_codesniffer": "^3.5",
"jangregor/phpstan-prophecy": "^0.8.0",
"phpspec/prophecy": "^1.15",
"spatie/phpunit-snapshot-assertions": "^4.2"
},
"config": {
Expand Down

0 comments on commit 156097a

Please sign in to comment.