Skip to content

Commit

Permalink
fix php7 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Mar 31, 2024
1 parent 8c7248b commit 00c91c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api.include.php
Expand Up @@ -2268,7 +2268,7 @@ public function withoutAttribute($attribute): ServerRequestInterface
*/
class Stream implements StreamInterface
{
function __toString() {}
function __toString():string { return ""; }

/** @var resource|null A resource reference */
private $stream;
Expand Down
2 changes: 1 addition & 1 deletion api.php
Expand Up @@ -2268,7 +2268,7 @@ public function withoutAttribute($attribute): ServerRequestInterface
*/
class Stream implements StreamInterface
{
function __toString() {}
function __toString():string { return ""; }

/** @var resource|null A resource reference */
private $stream;
Expand Down
2 changes: 1 addition & 1 deletion build.php
Expand Up @@ -109,7 +109,7 @@ function run(string $base, array $dirs, string $filename, array $ignore, array $
];

$replaces = [
'use StreamTrait;' => 'function __toString() {}'
'use StreamTrait;' => 'function __toString():string { return ""; }'
];

$directories = ['vendor/nyholm', 'src'];
Expand Down

0 comments on commit 00c91c9

Please sign in to comment.