Skip to content

Commit

Permalink
Soothe CS
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Sep 17, 2023
1 parent 4d4c07e commit 471bd83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/AopCodeGenMethodSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public function get(ReflectionMethod $method): string
$signatureParts = [];

// PHPDocを取得
if ($docComment = $method->getDocComment()) {
$docComment = $method->getDocComment();
if ($docComment) {
$signatureParts[] = $docComment . PHP_EOL;
}

// アトリビュートを取得 (PHP 8.0+ の場合のみ)
if (PHP_VERSION_ID >= 80000) {
$a = $method->getAttributes();
/** @psalm-suppress MixedAssignment */
foreach ($method->getAttributes() as $attribute) {
$args = array_map(/** @param mixed $arg */static function ($arg): string {
Expand All @@ -64,7 +64,8 @@ public function get(ReflectionMethod $method): string
}

$returnType = '';
if ($rType = $method->getReturnType()) {
$rType = $method->getReturnType();
if ($rType) {
$returnType = ': ' . $this->getTypeString($rType);
}

Expand Down

0 comments on commit 471bd83

Please sign in to comment.