Skip to content

Commit

Permalink
#2341 - Correct null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Jan 23, 2022
1 parent 86911a7 commit 7ba67e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/ArgInfoDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ private function renderPhalconCompatible(): bool
$compatibilityClasses = require __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'config/phalcon-compatibility-headers.php';
$classDefinition = $this->functionLike->getClassDefinition();
$implementedInterfaces = $classDefinition !== null ? $classDefinition->getImplementedInterfaces() : [];
$extendsClass = $classDefinition->getExtendsClass() ?? null;
$extendsClass = $classDefinition !== null ? $classDefinition->getExtendsClass() : null;

if (empty($implementedInterfaces) && $extendsClass === null) {
return false;
Expand Down

0 comments on commit 7ba67e1

Please sign in to comment.