Skip to content

Commit

Permalink
Typo fix (#5341)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 8, 2023
1 parent 14f1128 commit f2a8542
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -28,14 +28,13 @@ public function resolve(Param $param): ?string
return null;
}

$staticType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type);

// include nullabgitle too
// include nullable too
// skip date time + date time interface, as should be kept
if ($this->nodeTypeResolver->isObjectType($param->type, new ObjectType('DateTimeInterface'))) {
return null;
}

$staticType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type);
$expectedName = $this->propertyNaming->getExpectedNameFromType($staticType);
if (! $expectedName instanceof ExpectedName) {
return null;
Expand Down

0 comments on commit f2a8542

Please sign in to comment.