Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Apr 13, 2024
1 parent e244286 commit 42a34bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/PhpParser/Node/Name.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Name extends NodeAbstract {
/**
* @psalm-var non-empty-string
* @var non-empty-string Name as string
* @var string Name as string
*/
public string $name;

Expand Down Expand Up @@ -36,7 +36,7 @@ public function getSubNodeNames(): array {
/**
* Get parts of name (split by the namespace separator).
*
* @psalm-return non-empty-array<string>
* @psalm-return non-empty-list<string>
* @return string[] Parts of name
*/
public function getParts(): array {
Expand Down Expand Up @@ -245,7 +245,8 @@ public static function concat($name1, $name2, array $attributes = []) {
*
* @param string|string[]|self $name Name to prepare
*
* @return non-empty-string Prepared name
* @psalm-return non-empty-string
* @return string Prepared name
*/
private static function prepareName($name): string {
if (\is_string($name)) {
Expand Down

0 comments on commit 42a34bd

Please sign in to comment.