Skip to content

Commit

Permalink
[10.x] fix compiled view file ends with .php (#46755)
Browse files Browse the repository at this point in the history
* fix compiled view file ends with .php

* fix style

* fix style
  • Loading branch information
kstych authored Apr 12, 2023
1 parent 95a74d2 commit 1c2eef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Concerns/ResolvesDumpSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function resolveDumpSource()
*/
protected function isCompiledViewFile($file)
{
return str_starts_with($file, $this->compiledViewPath);
return str_starts_with($file, $this->compiledViewPath) && str_ends_with($file, '.php');
}

/**
Expand Down

0 comments on commit 1c2eef8

Please sign in to comment.