PHP error

Return type of CList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

/home/paperdevswire/public_html/framework/collections/CList.php(88)

076      * @param boolean $value whether this list is read-only or not
077      */
078     protected function setReadOnly($value)
079     {
080         $this->_r=$value;
081     }
082 
083     /**
084      * Returns an iterator for traversing the items in the list.
085      * This method is required by the interface IteratorAggregate.
086      * @return Iterator an iterator for traversing the items in the list.
087      */
088     public function getIterator()
089     {
090         return new CListIterator($this->_d);
091     }
092 
093     /**
094      * Returns the number of items in the list.
095      * This method is required by Countable interface.
096      * @return integer number of items in the list.
097      */
098     public function count()
099     {
100         return $this->getCount();

Stack Trace

#6
+
 /home/paperdevswire/public_html/index.php(26): YiiBase::createWebApplication("/home/paperdevswire/public_html/protected/config/main.php")
21             defined('YII_DEBUG') or define('YII_DEBUG',true);
22             // specify how many levels of call stack should be shown in each log message
23             defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
24             
25             require_once($yii);
26             Yii::createWebApplication($config)->run();
27         }
28 if(!$isInstalled){
29     include "install.php";
30 }
2026-09-06 09:18:27 LiteSpeed Yii Framework/1.1.19