Skip to content

Commit

Permalink
Reverse PHP 8 syntaxs webonyx/atlas-api#393
Browse files Browse the repository at this point in the history
  • Loading branch information
phamviet committed Feb 8, 2022
1 parent 35f1e8b commit 37f4e9f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"homepage": "http://framework.zend.com/",
"license": "BSD-3-Clause",
"require": {
"php": ">=8.0"
"php": ">=5.2.11"
},
"autoload": {
"psr-0": {
Expand Down
4 changes: 0 additions & 4 deletions library/Zend/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ public function count(): int
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
$this->_skipNextIteration = false;
Expand All @@ -267,7 +266,6 @@ public function current()
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return key($this->_data);
Expand All @@ -277,7 +275,6 @@ public function key()
* Defined by Iterator interface
*
*/
#[\ReturnTypeWillChange]
public function next()
{
if ($this->_skipNextIteration) {
Expand All @@ -292,7 +289,6 @@ public function next()
* Defined by Iterator interface
*
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->_skipNextIteration = false;
Expand Down
4 changes: 0 additions & 4 deletions library/Zend/Controller/Action/HelperBroker/PriorityStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public function push(Zend_Controller_Action_Helper_Abstract $helper)
*
* @return \Traversable
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new ArrayObject($this->_helpersByPriority);
Expand All @@ -115,7 +114,6 @@ public function offsetExists($priorityOrHelperName): bool
* @param int|string $priorityOrHelperName
* @return Zend_Controller_Action_HelperBroker_PriorityStack|mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($priorityOrHelperName)
{
if (!$this->offsetExists($priorityOrHelperName)) {
Expand All @@ -137,7 +135,6 @@ public function offsetGet($priorityOrHelperName)
* @param Zend_Controller_Action_Helper_Abstract $helper
* @return Zend_Controller_Action_HelperBroker_PriorityStack
*/
#[\ReturnTypeWillChange]
public function offsetSet($priority, $helper)
{
$priority = (int) $priority;
Expand Down Expand Up @@ -175,7 +172,6 @@ public function offsetSet($priority, $helper)
* @param int|string $priorityOrHelperName Priority integer or the helper name
* @return Zend_Controller_Action_HelperBroker_PriorityStack
*/
#[\ReturnTypeWillChange]
public function offsetUnset($priorityOrHelperName)
{
if (!$this->offsetExists($priorityOrHelperName)) {
Expand Down
3 changes: 0 additions & 3 deletions library/Zend/View/Helper/Placeholder/Container/Standalone.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ public function offsetExists($offset): bool
* @param string|int $offset
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->getContainer()->offsetGet($offset);
Expand All @@ -297,7 +296,6 @@ public function offsetGet($offset)
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
return $this->getContainer()->offsetSet($offset, $value);
Expand All @@ -309,7 +307,6 @@ public function offsetSet($offset, $value)
* @param string|int $offset
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
return $this->getContainer()->offsetUnset($offset);
Expand Down

0 comments on commit 37f4e9f

Please sign in to comment.