From e5b8a6edc8721b7cfc224decfadb81eb227f510e Mon Sep 17 00:00:00 2001 From: orklah Date: Wed, 22 Sep 2021 22:09:22 +0200 Subject: [PATCH] TCallableString is non-falsy (0 can't be a functionlike name) --- src/Psalm/Type/Atomic/TCallableString.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Type/Atomic/TCallableString.php b/src/Psalm/Type/Atomic/TCallableString.php index 25b1edb0d4e..cf6f1d78a51 100644 --- a/src/Psalm/Type/Atomic/TCallableString.php +++ b/src/Psalm/Type/Atomic/TCallableString.php @@ -4,7 +4,7 @@ /** * Denotes the `callable-string` type, used to represent an unknown string that is also `callable`. */ -class TCallableString extends TNonEmptyString +class TCallableString extends TNonFalsyString { public function getKey(bool $include_extra = true): string