Commit f79318ba authored by Isaac Brown's avatar Isaac Brown Committed by GitHub

Use implemented method instead of duplicate implementation

parent caec2672
......@@ -115,7 +115,7 @@ class CompositeExpression implements \Countable
*/
public function __toString()
{
if (count($this->parts) === 1) {
if ($this->count() === 1) {
return (string) $this->parts[0];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment