From 0a2149e427fe91ec0d3024583d35ce9fe3034c33 Mon Sep 17 00:00:00 2001 From: Dragos Protung Date: Mon, 24 May 2021 22:30:20 +0200 Subject: [PATCH] fixed mismatching psalm assert variables (#197) --- src/Psl/Class/defined.php | 2 +- src/Psl/Class/exists.php | 2 +- src/Psl/Iter/is_empty.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Psl/Class/defined.php b/src/Psl/Class/defined.php index cd20e4bc..764a75a2 100644 --- a/src/Psl/Class/defined.php +++ b/src/Psl/Class/defined.php @@ -11,7 +11,7 @@ * * @param string $class_name * - * @psalm-assert-if-true class-string $classname + * @psalm-assert-if-true class-string $class_name * * @pure */ diff --git a/src/Psl/Class/exists.php b/src/Psl/Class/exists.php index 77b331a2..cf162b7d 100644 --- a/src/Psl/Class/exists.php +++ b/src/Psl/Class/exists.php @@ -11,7 +11,7 @@ * * @param string $class_name * - * @psalm-assert-if-true class-string $classname + * @psalm-assert-if-true class-string $class_name */ function exists(string $class_name): bool { diff --git a/src/Psl/Iter/is_empty.php b/src/Psl/Iter/is_empty.php index 1f25c01d..1f0c5642 100644 --- a/src/Psl/Iter/is_empty.php +++ b/src/Psl/Iter/is_empty.php @@ -7,7 +7,7 @@ /** * Check whether an iterable is empty. * - * @psalm-assert-if-true empty $value + * @psalm-assert-if-true empty $iterable */ function is_empty(iterable $iterable): bool {