Skip to content

Commit

Permalink
[1.x] Fixes Class API when used with multiple fragments (#26)
Browse files Browse the repository at this point in the history
* Fixes multiple fragments being used with Class API

* Fix code styling

---------

Co-authored-by: nunomaduro <[email protected]>
  • Loading branch information
nunomaduro and nunomaduro authored Aug 15, 2023
1 parent 1466e33 commit 2e1e946
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ComponentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public function make(string $componentName, string $path): string
);

if (static::$latestCreatedComponentClass) {
opcache_invalidate($path, true);

return static::$latestCreatedComponentClass;
}

Expand Down

0 comments on commit 2e1e946

Please sign in to comment.