Skip to content

Commit ecccfcd

Browse files
committed
fix compatibility
1 parent 0a309f6 commit ecccfcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BladeFiles.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class BladeFiles
1212

1313
public static function check($methods)
1414
{
15+
$compiler = app('microscope.blade.compiler');
16+
method_exists($compiler, 'withoutComponentTags') && $compiler->withoutComponentTags();
1517
$hints = self::getNamespacedPaths();
1618
$hints['1'] = View::getFinder()->getPaths();
1719
foreach ($hints as $paths) {

src/SpyClasses/ViewsData.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ public function readTokenizedVars()
5151

5252
public static function getBladeTokens($path)
5353
{
54-
app('microscope.blade.compiler')->withoutComponentTags();
55-
5654
return token_get_all(app('microscope.blade.compiler')->compileString(file_get_contents($path)));
5755
}
5856
}

0 commit comments

Comments
 (0)