Skip to content

Commit 5a28f99

Browse files
author
Frank Kleine
committed
use empty() instead of comparison
1 parent f606d42 commit 5a28f99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/predicate/Equals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __toString()
8686
} else {
8787
$result = sprintf('is equal to <string:%s>', $this->expected);
8888
}
89-
} elseif (is_array($this->expected) && [] === $this->expected) {
89+
} elseif (is_array($this->expected) && empty($this->expected)) {
9090
$result = 'is an empty array';
9191
} else {
9292

0 commit comments

Comments
 (0)