Browse Source

Fix for PHP 8.2 beta2

PHP E_DEPRECATED: Creation of dynamic property is deprecated
Visman 2 years ago
parent
commit
cb67651e9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/Report/Reports.php

+ 1 - 1
app/Models/Report/Reports.php

@@ -89,7 +89,7 @@ class Reports extends Manager
      */
     public function lastId(): int
     {
-        $last = $this->list = $this->c->Cache->get('report');
+        $last = $this->c->Cache->get('report');
 
         if (null === $last) {
             $query = 'SELECT MAX(r.id)