Skip to content

Commit

Permalink
use type correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
withinboredom committed Jan 1, 2024
1 parent 07e66fb commit a7a1f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Template/Parser/StreamingCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ private function renderComponent(Document $document): Document
);

// configure tokenizer
$attributes = Attributes::forClass($component::class);
$attributes = Attributes::forClass($component->type);
foreach($attributes->classAttributes as $attribute) {
if($attribute instanceof AbstractCache) {
$this->tokenizer = $attribute->tokenize($this->tokenizer);
Expand Down

0 comments on commit a7a1f74

Please sign in to comment.