PHP error

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

/home5/siilhalal/public_html/extranet/yii/collections/CMap.php(81)

69      * @param boolean $value whether this list is read-only or not
70      */
71     protected function setReadOnly($value)
72     {
73         $this->_r=$value;
74     }
75 
76     /**
77      * Returns an iterator for traversing the items in the list.
78      * This method is required by the interface IteratorAggregate.
79      * @return CMapIterator an iterator for traversing the items in the list.
80      */
81     public function getIterator()
82     {
83         return new CMapIterator($this->_d);
84     }
85 
86     /**
87      * Returns the number of items in the map.
88      * This method is required by Countable interface.
89      * @return integer number of items in the map.
90      */
91     public function count()
92     {
93         return $this->getCount();

Stack Trace

#8
+
–
 /home5/siilhalal/public_html/extranet/autoload.php(16): YiiBase::createWebApplication("/home5/siilhalal/public_html/extranet/protected/config/main.php")
11 define('YII_ENABLE_ERROR_HANDLER', true);
12 define('YII_ENABLE_EXCEPTION_HANDLER', true);
13 
14 require_once($yii);
15 $app = new Yii();
16 $app->createWebApplication($config);
17 ?>
18 
#9
+
–
 /home5/siilhalal/public_html/br/noticias_page.php(6): include_once("/home5/siilhalal/public_html/extranet/autoload.php")
01 <?
02 /*********************************************************
03 *Controle de versao: 2.2
04 *********************************************************/
05 include("../gzip/gzipHTML.php"); 
06 include_once("../extranet/autoload.php");
07 $_GET['pagina'] = is_numeric( $_GET['pagina']) ? $_GET['pagina'] + 1 : 0;
08 $criteria = new CDbCriteria();
09 $criteria->order = 'idnoticia desc';
10 $criteria->addCondition( "ativo = 1" );
11 $data_provider = new CActiveDataProvider( 'Noticia', array(
#10
+
–
 /home5/siilhalal/public_html/br/RequestManager.php(159): require_once("/home5/siilhalal/public_html/br/noticias_page.php")
154             Utf8::encode($html);
155             echo $html;
156             exit;
157         }
158 
159         require_once($require_file);
160         exit;
161     }
162 }
163 ?>
2026-07-06 11:14:37 Apache Yii Framework/1.1.13