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

/home/albadiacement/public_html/careers/yii/framework/collections/CMap.php(77)

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

Stack Trace

#7
+
 /home/albadiacement/public_html/careers/index.php(13): YiiBase::createWebApplication("/home/albadiacement/public_html/careers/protected/config/main.ph...")
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 17:27:05 Apache Yii Framework/1.1.8