Skip to content

Commit

Permalink
Fix for PHP 8.4 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych authored Dec 29, 2024
1 parent b09e283 commit 7b00242
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"

steps:
- name: Checkout.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- "8.0"
- "8.1"
- "8.2"
- "8.3"

steps:
- name: Checkout.
Expand Down
2 changes: 1 addition & 1 deletion src/SapiEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class SapiEmitter implements EmitterInterface
* @param int|null $bufferLength
* @throws InvalidArgumentException if buffer length is integer type and less than or one.
*/
public function __construct(int $bufferLength = null)
public function __construct(?int $bufferLength = null)
{
if ($bufferLength !== null && $bufferLength < 1) {
throw new InvalidArgumentException(sprintf(
Expand Down

0 comments on commit 7b00242

Please sign in to comment.