Browse Source

Fix for PHP 8.2 beta2

 PHP E_DEPRECATED: Creation of dynamic property is deprecated
Visman 2 years ago
parent
commit
22d7ed40fa
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Core/View.php

+ 2 - 0
app/Core/View.php

@@ -16,6 +16,8 @@ use RuntimeException;
 
 class View extends Dirk
 {
+    protected $templates = [];
+
     public function __construct (string $cache, string $views)
     {
         $config = [