Skip to content

Commit

Permalink
symfony-deprecations (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-worman authored Jan 16, 2024
1 parent 6e50ffd commit f68ce73
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: "Tests"

on:
- pull_request
- push
push:
branches: ['master']
pull_request:

jobs:
test:
Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"ext-simplexml": "*",
"ext-spl": "*",
"ext-xml": "*",
"ext-zlib": "*",
"jworman/polyfill-php81": "^1.25",
"symfony/polyfill-php70": "^1.19"
"ext-zlib": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.47",
Expand Down
3 changes: 1 addition & 2 deletions packages/zend-config/library/Zend/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ public function count()
/**
* Defined by Iterator interface.
*/
#[ReturnTypeWillChange]
public function current()
public function current(): mixed
{
$this->_skipNextIteration = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,8 @@ public function offsetExists($offset)

/**
* ArrayAccess: offsetGet.
*
* @param string|int $offset
*/
#[ReturnTypeWillChange]
public function offsetGet($offset)
public function offsetGet($offset): string|int
{
return $this->getContainer()->offsetGet($offset);
}
Expand Down

0 comments on commit f68ce73

Please sign in to comment.