From a7a1f74328214915a0e933ba076a0f76fca5f512 Mon Sep 17 00:00:00 2001 From: Robert Landers Date: Mon, 1 Jan 2024 10:57:24 +0100 Subject: [PATCH] use type correctly --- src/Template/Parser/StreamingCompiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Parser/StreamingCompiler.php b/src/Template/Parser/StreamingCompiler.php index 8a9a376..85c6364 100644 --- a/src/Template/Parser/StreamingCompiler.php +++ b/src/Template/Parser/StreamingCompiler.php @@ -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);