Skip to content

Commit

Permalink
Support PHP 7.4 too
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Apr 4, 2024
1 parent a8db036 commit 794ab9c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"php": "^8.0"
"php": "^7.4 || ^8.0"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3",
Expand Down
13 changes: 9 additions & 4 deletions tests/TestSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@
class TestSessionHandler implements SessionHandlerInterface, SessionIdInterface
{

public function __construct(
private string $sessionId,
private array $data = [],
) {
private string $sessionId;

/** @var array<string, string> */
private array $data = [];


public function __construct(string $sessionId)
{
$this->sessionId = $sessionId;
}


Expand Down

0 comments on commit 794ab9c

Please sign in to comment.