We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6c2890 commit 7c46c96Copy full SHA for 7c46c96
1 file changed
src/Buffertools/Template.php
@@ -63,7 +63,7 @@ public function addItem(TypeInterface $item): Template
63
*/
64
public function parse(Parser $parser): array
65
{
66
- if (0 == count($this->template)) {
+ if (empty($this->template)) {
67
throw new \RuntimeException('No items in template');
68
}
69
0 commit comments