Skip to content

Commit

Permalink
#6593 #5864 removing incorrect null return value in API marked as `…
Browse files Browse the repository at this point in the history
…string`
  • Loading branch information
Ocramius committed Aug 16, 2017
1 parent e1acba3 commit 894490c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Tools/EntityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ protected function generateEntityStubMethod(ClassMetadataInfo $metadata, $type,
protected function generateLifecycleCallbackMethod($name, $methodName, ClassMetadataInfo $metadata)
{
if ($this->hasMethod($methodName, $metadata)) {
return null;
return '';
}

$this->staticReflection[$metadata->name]['methods'][] = $methodName;
Expand Down

0 comments on commit 894490c

Please sign in to comment.