Skip to content

Commit

Permalink
Merge pull request #18 from Koen1999/php81
Browse files Browse the repository at this point in the history
Added support for PHP 8.1
  • Loading branch information
Ocramius authored Nov 30, 2021
2 parents f7569d0 + e168364 commit fe2e514
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
},
"require": {
"php": "^7.3 || ~8.0.0",
"php": "^7.3 || ~8.0.0 || ~8.1.0",
"laminas/laminas-mvc": "^3.0",
"laminas/laminas-session": "^2.8.5",
"laminas/laminas-stdlib": "^3.2.1",
Expand Down
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/FlashMessenger.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Laminas\Session\Container;
use Laminas\Session\ManagerInterface as Manager;
use Laminas\Stdlib\SplQueue;
use ReturnTypeWillChange;

/**
* Flash Messenger - implement session-based messages
Expand Down Expand Up @@ -592,6 +593,7 @@ public function clearCurrentMessagesFromContainer()
*
* @return ArrayIterator
*/
#[ReturnTypeWillChange]
public function getIterator()
{
if ($this->hasMessages()) {
Expand All @@ -606,6 +608,7 @@ public function getIterator()
*
* @return int
*/
#[ReturnTypeWillChange]
public function count()
{
if ($this->hasMessages()) {
Expand Down

0 comments on commit fe2e514

Please sign in to comment.