Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
php 7.4 compatibility (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar authored Jan 9, 2020
1 parent 3cc49c7 commit 350ee70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"nette/php-generator": "^3.0",
"nette/tokenizer": "~3.0",
"nette/reflection": "^2.4",
"kdyby/annotations": "^2.6",
"kdyby/annotations": "^3.0",
"symfony/property-access": "~4.2"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Kdyby/Aop/PhpGenerator/PointcutMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function from(Nette\Reflection\Method $from): PointcutMethod
$method->setVariadic($from->isVariadic());
$method->setComment(Code\Helpers::unformatDocComment($from->getDocComment()));
if ($from->hasReturnType()) {
$method->setReturnType((string) $from->getReturnType());
$method->setReturnType(($from->getReturnType()->getName()));
$method->setReturnNullable($from->getReturnType()->allowsNull());
}
return $method;
Expand Down

0 comments on commit 350ee70

Please sign in to comment.