Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed May 18, 2024
1 parent 962d98e commit b890eb7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PowerGridComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ private function getTheme(): array
{
$class = $this->template() ?? powerGridTheme();

$themeBase = PowerGrid::theme($class);

return convertObjectsToArray((array) $themeBase->apply());

return Cache::rememberForever('powerGridTheme_' . $class, function () use ($class) {
/** @var ThemeBase $themeBase */
$themeBase = PowerGrid::theme($class);
Expand Down

0 comments on commit b890eb7

Please sign in to comment.