Skip to content

Commit d2f7eb2

Browse files
Do not use empty()
1 parent bd7a968 commit d2f7eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runner/Baseline/Issue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private static function calculateHash(string $file, int $line): string
137137

138138
$hash = sha1($lines[$key]);
139139

140-
assert(!empty($hash));
140+
assert($hash !== '');
141141

142142
return $hash;
143143
}

0 commit comments

Comments
 (0)