Skip to content

Commit

Permalink
fix compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Mar 1, 2021
1 parent 0a309f6 commit ecccfcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/BladeFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class BladeFiles

public static function check($methods)
{
$compiler = app('microscope.blade.compiler');
method_exists($compiler, 'withoutComponentTags') && $compiler->withoutComponentTags();
$hints = self::getNamespacedPaths();
$hints['1'] = View::getFinder()->getPaths();
foreach ($hints as $paths) {
Expand Down
2 changes: 0 additions & 2 deletions src/SpyClasses/ViewsData.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ public function readTokenizedVars()

public static function getBladeTokens($path)
{
app('microscope.blade.compiler')->withoutComponentTags();

return token_get_all(app('microscope.blade.compiler')->compileString(file_get_contents($path)));
}
}

0 comments on commit ecccfcd

Please sign in to comment.