We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4355373 commit e5358fbCopy full SHA for e5358fb
src/Analyzer/NameResolver.php
@@ -148,11 +148,11 @@ public function enterNode(Node $node)
148
break;
149
}
150
151
- if ($node->type === null) {
+ if (null === $node->type) {
152
foreach ($phpDocNode->getTags() as $tagValue) {
153
- if ($tagValue->name[0] === '@' && strpos($tagValue->name, '@var') === false) {
+ if ('@' === $tagValue->name[0] && false === strpos($tagValue->name, '@var')) {
154
$customTag = str_replace('@', '', $tagValue->name);
155
- $type = $this->resolveName(new Node\Name((string) $customTag), Use_::TYPE_NORMAL);
+ $type = $this->resolveName(new Node\Name($customTag), Use_::TYPE_NORMAL);
156
$node->type = $type;
157
158
0 commit comments