Commit 432b8008 authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #2425 from Progdom/use-implemented-method

Use implemented method instead of duplicate implementation
parents caec2672 f79318ba
......@@ -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