Skip to content

Commit

Permalink
Remoned not necessary comparsion
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jun 1, 2021
1 parent e733d87 commit b71cdcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mapping/Driver/Timestampable.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ private function isValidField(ORM\Mapping\ClassMetadataInfo $classMetadata, stri
{
$mapping = $classMetadata->getFieldMapping($field);

return $mapping !== [] && in_array($mapping['type'], $this->validTypes, true);
return in_array($mapping['type'], $this->validTypes, true);
}

}

0 comments on commit b71cdcb

Please sign in to comment.