Skip to content

Commit

Permalink
bug fix empty escape character polyfill in Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Mar 2, 2019
1 parent 5ad1aa2 commit b1b6469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ protected function filterControl(string $delimiter, string $enclosure, string $e
{
$controls = ['delimiter' => $delimiter, 'enclosure' => $enclosure, 'escape' => $escape];
foreach ($controls as $type => $control) {
if (70400 < PHP_VERSION_ID && 'escape' === $type && '' === $control) {
if ('escape' === $type && '' === $control && 70400 <= PHP_VERSION_ID) {
continue;
}

Expand Down
1 change: 1 addition & 0 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use function is_array;
use function iterator_to_array;
use function strpos;
use const COUNT_RECURSIVE;

/**
* Returns the BOM sequence found at the start of the string.
Expand Down

0 comments on commit b1b6469

Please sign in to comment.