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

/home1/slipgaji/public_html/jual-jasa.com/yii/framework/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
+
 /home1/slipgaji/public_html/jual-jasa.com/iklan/index.php(19): YiiBase::createWebApplication("/home1/slipgaji/public_html/jual-jasa.com/iklan/protected/config...")
14 
15 error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_STRICT | E_DEPRECATED);
16 error_reporting(E_ALL ^ E_NOTICE);
17 
18 require_once($yii);
19 Yii::createWebApplication($config)->run();
2024-03-29 09:35:52 Apache Yii Framework/1.1.13