Skip to content

Commit

Permalink
best practice
Browse files Browse the repository at this point in the history
  • Loading branch information
nticaric committed Apr 27, 2016
1 parent fe074e4 commit 951cf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function toPostfix($exp)
}
}
}
while ($stack) {
while (!empty($stack)) {
$postfix[] = array_pop($stack);
}

Expand Down

0 comments on commit 951cf01

Please sign in to comment.