Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/Mage/Backup/Filesystem/Iterator/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class Mage_Backup_Filesystem_Iterator_File extends SplFileObject
*
* @return string
*/
#[ReturnTypeWillChange]
public function current()
{
return $this->_currentStatement;
Expand All @@ -54,6 +55,7 @@ public function current()
/**
* Iterate to next sql statement in file
*/
#[ReturnTypeWillChange]
public function next()
{
$this->_currentStatement = '';
Expand All @@ -71,6 +73,7 @@ public function next()
/**
* Return to first statement
*/
#[ReturnTypeWillChange]
public function rewind()
{
parent::rewind();
Expand Down
1 change: 1 addition & 0 deletions lib/Mage/Backup/Filesystem/Iterator/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function __construct(Iterator $iterator, array $filters)
*
* @return bool
*/
#[ReturnTypeWillChange]
public function accept()
{
$current = $this->current()->__toString();
Expand Down
1 change: 1 addition & 0 deletions lib/Varien/Simplexml/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function getParent()
*
* @return boolean
*/
#[ReturnTypeWillChange]
public function hasChildren()
{
if (!$this->children()) {
Expand Down
1 change: 1 addition & 0 deletions lib/Zend/Feed/Reader/FeedSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
1 change: 1 addition & 0 deletions lib/Zend/File/ClassFileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function __construct($dirOrIterator = '.')
*
* @return bool
*/
#[ReturnTypeWillChange]
public function accept()
{
$file = $this->getInnerIterator()->current();
Expand Down
7 changes: 7 additions & 0 deletions lib/Zend/Reflection/Class.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function getDocblock($reflectionClass = 'Zend_Reflection_Docblock')
* @param bool $includeDocComment
* @return int
*/
#[ReturnTypeWillChange]
public function getStartLine($includeDocComment = false)
{
if ($includeDocComment) {
Expand Down Expand Up @@ -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();
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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();
Expand All @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions lib/Zend/Reflection/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions lib/Zend/Reflection/Function.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function getDocblock($reflectionClass = 'Zend_Reflection_Docblock')
* @param bool $includeDocComment
* @return int
*/
#[ReturnTypeWillChange]
public function getStartLine($includeDocComment = false)
{
if ($includeDocComment) {
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions lib/Zend/Reflection/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function getDocblock($reflectionClass = 'Zend_Reflection_Docblock')
* @param bool $includeDocComment
* @return int
*/
#[ReturnTypeWillChange]
public function getStartLine($includeDocComment = false)
{
if ($includeDocComment) {
Expand All @@ -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();
Expand All @@ -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();
Expand Down
4 changes: 4 additions & 0 deletions lib/Zend/Reflection/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -107,6 +110,7 @@ public function getDeclaringFunction($reflectionClass = null)
*
* @return string
*/
#[ReturnTypeWillChange]
public function getType()
{
if ($docblock = $this->getDeclaringFunction()->getDocblock()) {
Expand Down
2 changes: 2 additions & 0 deletions lib/Zend/Reflection/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
1 change: 1 addition & 0 deletions lib/Zend/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function __construct(RecursiveIterator $iterator, $denyDirectoryPattern =
*
* @return unknown
*/
#[ReturnTypeWillChange]
public function accept()
{
$currentNode = $this->current();
Expand All @@ -74,6 +75,7 @@ public function accept()
*
* @return Zend_Tool_Framework_Loader_IncludePathLoader_RecursiveFilterIterator
*/
#[ReturnTypeWillChange]
public function getChildren()
{
if (empty($this->ref)) {
Expand Down
2 changes: 2 additions & 0 deletions lib/Zend/Tool/Project/Profile/Iterator/ContextFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function setDenyNames($denyNames)
*
* @return bool
*/
#[ReturnTypeWillChange]
public function accept()
{
$currentItem = $this->current();
Expand Down Expand Up @@ -198,6 +199,7 @@ public function accept()
*
* @return unknown
*/
#[ReturnTypeWillChange]
function getChildren()
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Zend_Tool_Project_Profile_Iterator_EnabledResourceFilter extends Recursive
*
* @return bool
*/
#[ReturnTypeWillChange]
public function accept()
{
return $this->current()->isEnabled();
Expand Down