Skip to content

Commit

Permalink
More precise toLowerString() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and nikic committed Nov 5, 2024
1 parent 8eea230 commit 954f7a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/PhpParser/Node/Identifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function toString(): string {
/**
* Get lowercased identifier as string.
*
* @psalm-return non-empty-string
* @psalm-return non-empty-string&lowercase-string
* @return string Lowercased identifier as string
*/
public function toLowerString(): string {
Expand Down
2 changes: 1 addition & 1 deletion lib/PhpParser/Node/Name.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function toCodeString(): string {
* Returns lowercased string representation of the name, without taking the name type into
* account (e.g., no leading backslash for fully qualified names).
*
* @psalm-return non-empty-string
* @psalm-return non-empty-string&lowercase-string
* @return string Lowercased string representation
*/
public function toLowerString(): string {
Expand Down

0 comments on commit 954f7a4

Please sign in to comment.