Skip to content

Commit 414259c

Browse files
authored
Update DbView.php
Revised for backwards compatibility with L5.3, 5.2, 5.1
1 parent 7072f7c commit 414259c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Flynsarmy/DbBladeCompiler/DbView.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function render(Closure $callback = null)
7474
// Once we have the contents of the view, we will flush the sections if we are
7575
// done rendering all views so that there is nothing left hanging over when
7676
// anothoer view is rendered in the future by the application developers.
77-
View::flushStateIfDoneRendering();
77+
( str_contains( app()->version(), ['5.3','5.2', '5.1']) ? View::flushSectionsIfDoneRendering() : View::flushStateIfDoneRendering());
7878

7979
return $response ?: $contents;
8080
}

0 commit comments

Comments
 (0)