PHP Error

Description

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

Source File

/home/www/doc/25842/dcp258420002/labor.platis.de/manan/yii-1.1.5/framework/collections/CMap.php(77)

00065:      * @param boolean $value whether this list is read-only or not
00066:      */
00067:     protected function setReadOnly($value)
00068:     {
00069:         $this->_r=$value;
00070:     }
00071: 
00072:     /**
00073:      * Returns an iterator for traversing the items in the list.
00074:      * This method is required by the interface IteratorAggregate.
00075:      * @return CMapIterator an iterator for traversing the items in the list.
00076:      */
00077: public function getIterator()
00078: { 00079: return new CMapIterator($this->_d); 00080: } 00081: 00082: /** 00083: * Returns the number of items in the map. 00084: * This method is required by Countable interface. 00085: * @return integer number of items in the map. 00086: */ 00087: public function count() 00088: { 00089: return $this->getCount();

Stack Trace

#0 /home/www/doc/25842/dcp258420002/labor.platis.de/manan/yii-1.1.5/framework/YiiBase.php(389): include()
#1 /home/www/doc/25842/dcp258420002/labor.platis.de/manan/yii-1.1.5/framework/base/CModule.php(452): autoload()
#2 /home/www/doc/25842/dcp258420002/labor.platis.de/manan/yii-1.1.5/framework/base/CComponent.php(152): CWebApplication->setComponents()
#3 /home/www/doc/25842/dcp258420002/labor.platis.de/manan/yii-1.1.5/framework/base/CModule.php(467): CWebApplication->__set()
#4 /home/www/doc/25842/dcp258420002/labor.platis.de/manan/yii-1.1.5/framework/base/CApplication.php(117): CWebApplication->configure()
#5 /home/www/doc/25842/dcp258420002/labor.platis.de/manan/yii-1.1.5/framework/YiiBase.php(118): CWebApplication->__construct()
#6 /home/www/doc/25842/dcp258420002/labor.platis.de/manan/yii-1.1.5/framework/YiiBase.php(91): createApplication()
#7 /home/www/doc/25842/dcp258420002/labor.platis.de/manan/index.php(13): createWebApplication()
2024-03-28 19:29:40 Apache Yii Framework/1.1.5