Skip to content

Commit 8625131

Browse files
authored
rewrite Reader::hasLength
1 parent fce70bc commit 8625131

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Phug/Reader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function getLength()
261261
*/
262262
public function hasLength()
263263
{
264-
return $this->input !== '';
264+
return $this->inputLength !== 0;
265265
}
266266

267267
/**

0 commit comments

Comments
 (0)