Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 29 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions src/ControllerMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,13 @@ public static function parse(string $context,
$methodDescriptionBlockLines[] = $line;
} elseif (
$docNode instanceof PhpDocTagNode && (
$docNode->value instanceof ParamTagValueNode ||
$docNode->value instanceof ThrowsTagValueNode ||
$docNode->value instanceof DeprecatedTagValueNode ||
$docNode->name === '@license' ||
$docNode->name === '@since' ||
$docNode->name === '@psalm-suppress' ||
$docNode->name === '@suppress'
$docNode->value instanceof ParamTagValueNode
|| $docNode->value instanceof ThrowsTagValueNode
|| $docNode->value instanceof DeprecatedTagValueNode
|| $docNode->name === '@license'
|| $docNode->name === '@since'
|| $docNode->name === '@psalm-suppress'
|| $docNode->name === '@suppress'
)) {
// Only add lines from other node types, as these have special handling (e.g. @param or @throws) or should be ignored entirely (e.g. @deprecated or @license).
continue;
Expand Down Expand Up @@ -552,10 +552,10 @@ public static function parse(string $context,

$codeRequestHeaders = [];
foreach ($nodeFinder->findInstanceOf($method->getStmts(), MethodCall::class) as $methodCall) {
if ($methodCall->var instanceof PropertyFetch &&
$methodCall->var->var instanceof Variable &&
$methodCall->var->var->name === 'this' &&
$methodCall->var->name->name === 'request') {
if ($methodCall->var instanceof PropertyFetch
&& $methodCall->var->var instanceof Variable
&& $methodCall->var->var->name === 'this'
&& $methodCall->var->name->name === 'request') {
if ($methodCall->name->name === 'getHeader') {
$headerName = self::cleanHeaderName($methodCall->args[0]->value->value);

Expand Down
Loading