Skip to content

Commit 092de06

Browse files
Merge pull request #6 from CoverGenius/php8-compat-typing
Add bool type in filter function for php 8 compat
2 parents 5e56b0d + 6525053 commit 092de06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VCR/CodeTransform/AbstractCodeTransform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ public function register(): void
3030
*
3131
* @param resource $in
3232
* @param resource $out
33-
* @param int $consumed
33+
* @param int &$consumed
3434
* @param bool $closing
3535
*
3636
* @return int PSFS_PASS_ON
3737
*
3838
* @see http://www.php.net/manual/en/php-user-filter.filter.php
3939
*/
40-
public function filter($in, $out, &$consumed, $closing): int
40+
public function filter($in, $out, &$consumed, bool $closing): int
4141
{
4242
while ($bucket = stream_bucket_make_writeable($in)) {
4343
$bucket->data = $this->transformCode($bucket->data);

0 commit comments

Comments
 (0)