Skip to content

Commit

Permalink
Merge pull request #1076 from ByteHamster/php-8.1
Browse files Browse the repository at this point in the history
PHP 8.1 compatibility fixes
  • Loading branch information
ByteHamster authored Jan 2, 2022
2 parents b0fff14 + ec68253 commit 0b4a596
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
php-versions: ['7.2', '7.3', '7.4', '8.0']
cs-fixer: [ true ]
include:
- php-versions: '7.1'
cs-fixer: false
- php-versions: '8.1'
cs-fixer: false
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function render() {
$aAddressBooks = [];
$oAddressBooks = $this->oUser->getAddressBooksBaseRequester()->execute();

reset($oAddressBooks);
foreach ($oAddressBooks as $addressbook) {
$aAddressBooks[] = [
"linkedit" => $this->linkEdit($addressbook),
Expand Down
1 change: 0 additions & 1 deletion Core/Frameworks/BaikalAdmin/Controller/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ function render() {
$aUsers = [];
$oUsers = \Baikal\Model\User::getBaseRequester()->execute();

reset($oUsers);
foreach ($oUsers as $user) {
$aUsers[] = [
"linkcalendars" => \BaikalAdmin\Controller\Users::linkCalendars($user),
Expand Down
2 changes: 2 additions & 0 deletions Core/Frameworks/Flake/Core/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ class Collection extends \Flake\Core\FLObject implements \Iterator {
protected $aCollection = [];
protected $aMeta = [];

#[\ReturnTypeWillChange]
function current() {
return current($this->aCollection);
}

#[\ReturnTypeWillChange]
function key() {
return key($this->aCollection);
}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
}
],
"require": {
"php" : "^7.1 || ^8.0",
"php" : "^7.2 || ^8.0",
"sabre/dav" : "~4.3.0",
"twig/twig" : "~2.13.1",
"twig/twig" : "~2.14.8",
"symfony/yaml" : "^3.4"
},
"require-dev" : {
Expand Down

0 comments on commit 0b4a596

Please sign in to comment.