diff --git a/src/Illuminate/View/Concerns/ManagesLoops.php b/src/Illuminate/View/Concerns/ManagesLoops.php index cb7ccde35f37..95f06c825cb4 100644 --- a/src/Illuminate/View/Concerns/ManagesLoops.php +++ b/src/Illuminate/View/Concerns/ManagesLoops.php @@ -23,7 +23,7 @@ trait ManagesLoops public function addLoop($data) { $length = is_countable($data) && ! $data instanceof LazyCollection - ? count($data) + ? count($data) : null; $parent = Arr::last($this->loopsStack);