diff --git a/lib/Mage/Backup/Filesystem/Iterator/File.php b/lib/Mage/Backup/Filesystem/Iterator/File.php index bdc8739712f..8264c2c81b0 100644 --- a/lib/Mage/Backup/Filesystem/Iterator/File.php +++ b/lib/Mage/Backup/Filesystem/Iterator/File.php @@ -46,6 +46,7 @@ class Mage_Backup_Filesystem_Iterator_File extends SplFileObject * * @return string */ + #[ReturnTypeWillChange] public function current() { return $this->_currentStatement; @@ -54,6 +55,7 @@ public function current() /** * Iterate to next sql statement in file */ + #[ReturnTypeWillChange] public function next() { $this->_currentStatement = ''; @@ -71,6 +73,7 @@ public function next() /** * Return to first statement */ + #[ReturnTypeWillChange] public function rewind() { parent::rewind(); diff --git a/lib/Mage/Backup/Filesystem/Iterator/Filter.php b/lib/Mage/Backup/Filesystem/Iterator/Filter.php index 1de96f7f1db..80a826427fa 100644 --- a/lib/Mage/Backup/Filesystem/Iterator/Filter.php +++ b/lib/Mage/Backup/Filesystem/Iterator/Filter.php @@ -57,6 +57,7 @@ public function __construct(Iterator $iterator, array $filters) * * @return bool */ + #[ReturnTypeWillChange] public function accept() { $current = $this->current()->__toString(); diff --git a/lib/Varien/Simplexml/Element.php b/lib/Varien/Simplexml/Element.php index 48528093d59..f2e679b46b4 100644 --- a/lib/Varien/Simplexml/Element.php +++ b/lib/Varien/Simplexml/Element.php @@ -79,6 +79,7 @@ public function getParent() * * @return boolean */ + #[ReturnTypeWillChange] public function hasChildren() { if (!$this->children()) { diff --git a/lib/Zend/Feed/Reader/FeedSet.php b/lib/Zend/Feed/Reader/FeedSet.php index 85258ba1088..ce5ef025165 100644 --- a/lib/Zend/Feed/Reader/FeedSet.php +++ b/lib/Zend/Feed/Reader/FeedSet.php @@ -132,6 +132,7 @@ protected function _canonicalizePath($path) * @return mixed * @uses Zend_Feed_Reader */ + #[ReturnTypeWillChange] public function offsetGet($offset) { if ($offset == 'feed' && !$this->offsetExists('feed')) { diff --git a/lib/Zend/File/ClassFileLocator.php b/lib/Zend/File/ClassFileLocator.php index 11f1014fc76..3021222e1bd 100644 --- a/lib/Zend/File/ClassFileLocator.php +++ b/lib/Zend/File/ClassFileLocator.php @@ -75,6 +75,7 @@ public function __construct($dirOrIterator = '.') * * @return bool */ + #[ReturnTypeWillChange] public function accept() { $file = $this->getInnerIterator()->current(); diff --git a/lib/Zend/Reflection/Class.php b/lib/Zend/Reflection/Class.php index 235b2ee6056..0d51507622b 100644 --- a/lib/Zend/Reflection/Class.php +++ b/lib/Zend/Reflection/Class.php @@ -85,6 +85,7 @@ public function getDocblock($reflectionClass = 'Zend_Reflection_Docblock') * @param bool $includeDocComment * @return int */ + #[ReturnTypeWillChange] public function getStartLine($includeDocComment = false) { if ($includeDocComment) { @@ -118,6 +119,7 @@ public function getContents($includeDocblock = true) * @param string $reflectionClass Name of reflection class to use * @return array Array of Zend_Reflection_Class */ + #[ReturnTypeWillChange] public function getInterfaces($reflectionClass = 'Zend_Reflection_Class') { $phpReflections = parent::getInterfaces(); @@ -142,6 +144,7 @@ public function getInterfaces($reflectionClass = 'Zend_Reflection_Class') * @param string $reflectionClass Reflection class to utilize * @return Zend_Reflection_Method */ + #[ReturnTypeWillChange] public function getMethod($name, $reflectionClass = 'Zend_Reflection_Method') { $phpReflection = parent::getMethod($name); @@ -163,6 +166,7 @@ public function getMethod($name, $reflectionClass = 'Zend_Reflection_Method') * @param string $reflectionClass Reflection class to use for methods * @return array Array of Zend_Reflection_Method objects */ + #[ReturnTypeWillChange] public function getMethods($filter = -1, $reflectionClass = 'Zend_Reflection_Method') { $phpReflections = parent::getMethods($filter); @@ -186,6 +190,7 @@ public function getMethods($filter = -1, $reflectionClass = 'Zend_Reflection_Met * @param string $reflectionClass Name of Reflection class to use * @return Zend_Reflection_Class */ + #[ReturnTypeWillChange] public function getParentClass($reflectionClass = 'Zend_Reflection_Class') { $phpReflection = parent::getParentClass(); @@ -209,6 +214,7 @@ public function getParentClass($reflectionClass = 'Zend_Reflection_Class') * @param string $reflectionClass Name of reflection class to use * @return Zend_Reflection_Property */ + #[ReturnTypeWillChange] public function getProperty($name, $reflectionClass = 'Zend_Reflection_Property') { $phpReflection = parent::getProperty($name); @@ -228,6 +234,7 @@ public function getProperty($name, $reflectionClass = 'Zend_Reflection_Property' * @param string $reflectionClass Name of reflection class to use * @return array Array of Zend_Reflection_Property */ + #[ReturnTypeWillChange] public function getProperties($filter = -1, $reflectionClass = 'Zend_Reflection_Property') { $phpReflections = parent::getProperties($filter); diff --git a/lib/Zend/Reflection/Extension.php b/lib/Zend/Reflection/Extension.php index 818eb23ae04..5076bf6ee80 100644 --- a/lib/Zend/Reflection/Extension.php +++ b/lib/Zend/Reflection/Extension.php @@ -43,6 +43,7 @@ class Zend_Reflection_Extension extends ReflectionExtension * @param string $reflectionClass Name of reflection class to use * @return array Array of Zend_Reflection_Function objects */ + #[ReturnTypeWillChange] public function getFunctions($reflectionClass = 'Zend_Reflection_Function') { $phpReflections = parent::getFunctions(); @@ -66,6 +67,7 @@ public function getFunctions($reflectionClass = 'Zend_Reflection_Function') * @param string $reflectionClass Name of reflection class to use * @return array Array of Zend_Reflection_Class objects */ + #[ReturnTypeWillChange] public function getClasses($reflectionClass = 'Zend_Reflection_Class') { $phpReflections = parent::getClasses(); diff --git a/lib/Zend/Reflection/Function.php b/lib/Zend/Reflection/Function.php index 7d3e4386902..3727373fcaf 100644 --- a/lib/Zend/Reflection/Function.php +++ b/lib/Zend/Reflection/Function.php @@ -58,6 +58,7 @@ public function getDocblock($reflectionClass = 'Zend_Reflection_Docblock') * @param bool $includeDocComment * @return int */ + #[ReturnTypeWillChange] public function getStartLine($includeDocComment = false) { if ($includeDocComment) { @@ -93,6 +94,7 @@ public function getContents($includeDocblock = true) * @param string $reflectionClass Name of reflection class to use * @return array Array of Zend_Reflection_Parameter */ + #[ReturnTypeWillChange] public function getParameters($reflectionClass = 'Zend_Reflection_Parameter') { $phpReflections = parent::getParameters(); diff --git a/lib/Zend/Reflection/Method.php b/lib/Zend/Reflection/Method.php index b9ae1d91366..f71f0c3329a 100644 --- a/lib/Zend/Reflection/Method.php +++ b/lib/Zend/Reflection/Method.php @@ -69,6 +69,7 @@ public function getDocblock($reflectionClass = 'Zend_Reflection_Docblock') * @param bool $includeDocComment * @return int */ + #[ReturnTypeWillChange] public function getStartLine($includeDocComment = false) { if ($includeDocComment) { @@ -86,6 +87,7 @@ public function getStartLine($includeDocComment = false) * @param string $reflectionClass Name of reflection class to use * @return Zend_Reflection_Class */ + #[ReturnTypeWillChange] public function getDeclaringClass($reflectionClass = 'Zend_Reflection_Class') { $phpReflection = parent::getDeclaringClass(); @@ -104,6 +106,7 @@ public function getDeclaringClass($reflectionClass = 'Zend_Reflection_Class') * @param string $reflectionClass Name of reflection class to use * @return array of Zend_Reflection_Parameter objects */ + #[ReturnTypeWillChange] public function getParameters($reflectionClass = 'Zend_Reflection_Parameter') { $phpReflections = parent::getParameters(); diff --git a/lib/Zend/Reflection/Parameter.php b/lib/Zend/Reflection/Parameter.php index 10860ff4673..507bf26188b 100644 --- a/lib/Zend/Reflection/Parameter.php +++ b/lib/Zend/Reflection/Parameter.php @@ -38,6 +38,7 @@ class Zend_Reflection_Parameter extends ReflectionParameter * @param string $reflectionClass Reflection class to use * @return Zend_Reflection_Class */ + #[ReturnTypeWillChange] public function getDeclaringClass($reflectionClass = 'Zend_Reflection_Class') { $phpReflection = parent::getDeclaringClass(); @@ -56,6 +57,7 @@ public function getDeclaringClass($reflectionClass = 'Zend_Reflection_Class') * @param string $reflectionClass Reflection class to use * @return Zend_Reflection_Class */ + #[ReturnTypeWillChange] public function getClass($reflectionClass = 'Zend_Reflection_Class') { $phpReflection = parent::getClass(); @@ -78,6 +80,7 @@ public function getClass($reflectionClass = 'Zend_Reflection_Class') * @param string $reflectionClass Reflection class to use * @return Zend_Reflection_Function|Zend_Reflection_Method */ + #[ReturnTypeWillChange] public function getDeclaringFunction($reflectionClass = null) { $phpReflection = parent::getDeclaringFunction(); @@ -107,6 +110,7 @@ public function getDeclaringFunction($reflectionClass = null) * * @return string */ + #[ReturnTypeWillChange] public function getType() { if ($docblock = $this->getDeclaringFunction()->getDocblock()) { diff --git a/lib/Zend/Reflection/Property.php b/lib/Zend/Reflection/Property.php index c72d7c4abed..a47adc5a053 100644 --- a/lib/Zend/Reflection/Property.php +++ b/lib/Zend/Reflection/Property.php @@ -33,6 +33,7 @@ class Zend_Reflection_Property extends ReflectionProperty * * @return Zend_Reflection_Class */ + #[ReturnTypeWillChange] public function getDeclaringClass($reflectionClass = 'Zend_Reflection_Class') { $phpReflection = parent::getDeclaringClass(); @@ -51,6 +52,7 @@ public function getDeclaringClass($reflectionClass = 'Zend_Reflection_Class') * @param string $reflectionClass * @return Zend_Reflection_Docblock|false False if no docblock defined */ + #[ReturnTypeWillChange] public function getDocComment($reflectionClass = 'Zend_Reflection_Docblock') { $docblock = parent::getDocComment(); diff --git a/lib/Zend/Registry.php b/lib/Zend/Registry.php index 8ba6b76c7a3..597e4fc63e9 100644 --- a/lib/Zend/Registry.php +++ b/lib/Zend/Registry.php @@ -201,6 +201,7 @@ public function __construct($array = array(), $flags = parent::ARRAY_AS_PROPS) * * Workaround for http://bugs.php.net/bug.php?id=40442 (ZF-960). */ + #[ReturnTypeWillChange] public function offsetExists($index) { return array_key_exists($index, $this); diff --git a/lib/Zend/Tool/Framework/Loader/IncludePathLoader/RecursiveFilterIterator.php b/lib/Zend/Tool/Framework/Loader/IncludePathLoader/RecursiveFilterIterator.php index 50c9c74095c..6859c13f4b0 100644 --- a/lib/Zend/Tool/Framework/Loader/IncludePathLoader/RecursiveFilterIterator.php +++ b/lib/Zend/Tool/Framework/Loader/IncludePathLoader/RecursiveFilterIterator.php @@ -51,6 +51,7 @@ public function __construct(RecursiveIterator $iterator, $denyDirectoryPattern = * * @return unknown */ + #[ReturnTypeWillChange] public function accept() { $currentNode = $this->current(); @@ -74,6 +75,7 @@ public function accept() * * @return Zend_Tool_Framework_Loader_IncludePathLoader_RecursiveFilterIterator */ + #[ReturnTypeWillChange] public function getChildren() { if (empty($this->ref)) { diff --git a/lib/Zend/Tool/Project/Profile/Iterator/ContextFilter.php b/lib/Zend/Tool/Project/Profile/Iterator/ContextFilter.php index b074614e43e..392d564dbb8 100644 --- a/lib/Zend/Tool/Project/Profile/Iterator/ContextFilter.php +++ b/lib/Zend/Tool/Project/Profile/Iterator/ContextFilter.php @@ -165,6 +165,7 @@ public function setDenyNames($denyNames) * * @return bool */ + #[ReturnTypeWillChange] public function accept() { $currentItem = $this->current(); @@ -198,6 +199,7 @@ public function accept() * * @return unknown */ + #[ReturnTypeWillChange] function getChildren() { diff --git a/lib/Zend/Tool/Project/Profile/Iterator/EnabledResourceFilter.php b/lib/Zend/Tool/Project/Profile/Iterator/EnabledResourceFilter.php index 65b46b6ff38..ff7dfe5a0bd 100644 --- a/lib/Zend/Tool/Project/Profile/Iterator/EnabledResourceFilter.php +++ b/lib/Zend/Tool/Project/Profile/Iterator/EnabledResourceFilter.php @@ -36,6 +36,7 @@ class Zend_Tool_Project_Profile_Iterator_EnabledResourceFilter extends Recursive * * @return bool */ + #[ReturnTypeWillChange] public function accept() { return $this->current()->isEnabled();