Explorar o código

Fix for PHP 8.2 beta2

PHP E_DEPRECATED: Creation of dynamic property is deprecated
Visman %!s(int64=2) %!d(string=hai) anos
pai
achega
cb67651e9b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)