Skip to content

Commit

Permalink
adding the Polyfill namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Sep 26, 2018
1 parent 4012015 commit 7506b87
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion phpstan.tests.neon
Expand Up @@ -10,5 +10,5 @@ parameters:
- '#Parameter \#1 \$resource of class League\\Csv\\Stream constructor expects resource, string given.#'
- '#Parameter \#1 \$records of method League\\Csv\\CharsetConverter::convert\(\) expects array|Traversable, string given.#'
- '#Parameter \#2 \$delimiters of function League\\Csv\\delimiter_detect expects array<string>, array<int, array|string> given.#'
- '#Parameter \#1 \$document of static method League\\Csv\\EmptyEscapeParser::parse\(\) expects League\\Csv\\Stream\|SplFileObject, array given.#'
- '#Parameter \#1 \$document of static method League\\Csv\\Polyfill\\EmptyEscapeParser::parse\(\) expects League\\Csv\\Stream\|SplFileObject, array given.#'
reportUnmatchedIgnoredErrors: false
Expand Up @@ -14,9 +14,11 @@

declare(strict_types=1);

namespace League\Csv;
namespace League\Csv\Polyfill;

use Generator;
use League\Csv\Exception;
use League\Csv\Stream;
use SplFileObject;
use TypeError;
use function explode;
Expand Down
1 change: 1 addition & 0 deletions src/Reader.php
Expand Up @@ -22,6 +22,7 @@
use Iterator;
use IteratorAggregate;
use JsonSerializable;
use League\Csv\Polyfill\EmptyEscapeParser;
use SplFileObject;
use TypeError;
use const STREAM_FILTER_READ;
Expand Down
Expand Up @@ -12,10 +12,10 @@
* file that was distributed with this source code.
*/

namespace LeagueTest\Csv;
namespace LeagueTest\Csv\Polyfill;

use League\Csv\EmptyEscapeParser;
use League\Csv\Exception;
use League\Csv\Polyfill\EmptyEscapeParser;
use League\Csv\Reader;
use League\Csv\Stream;
use PHPUnit\Framework\TestCase;
Expand All @@ -25,7 +25,7 @@

/**
* @group reader
* @coversDefaultClass League\Csv\EmptyEscapeParser
* @coversDefaultClass League\Csv\Polyfill\EmptyEscapeParser
*/
class EmptyEscapeParserTest extends TestCase
{
Expand Down

0 comments on commit 7506b87

Please sign in to comment.