Skip to content

Commit b1b6469

Browse files
committed
bug fix empty escape character polyfill in Stream
1 parent 5ad1aa2 commit b1b6469

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ protected function filterControl(string $delimiter, string $enclosure, string $e
266266
{
267267
$controls = ['delimiter' => $delimiter, 'enclosure' => $enclosure, 'escape' => $escape];
268268
foreach ($controls as $type => $control) {
269-
if (70400 < PHP_VERSION_ID && 'escape' === $type && '' === $control) {
269+
if ('escape' === $type && '' === $control && 70400 <= PHP_VERSION_ID) {
270270
continue;
271271
}
272272

src/functions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use function is_array;
2424
use function iterator_to_array;
2525
use function strpos;
26+
use const COUNT_RECURSIVE;
2627

2728
/**
2829
* Returns the BOM sequence found at the start of the string.

0 commit comments

Comments
 (0)