diff options
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rw-r--r-- | src/Config/Controls.php | 2 | ||||
-rw-r--r-- | test/ControlsTest.php | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 25436c4..6524f9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ #Changelog All Notable changes to `League\Csv` will be documented in this file +## 7.0.1 - 2015-03-XX + +### Fixed + +- `setFlags`: `SplFileObject::DROP_NEW_LINE` can be remove using `setFlags` method. + ## 7.0.0 - 2015-02-19 ### Added diff --git a/src/Config/Controls.php b/src/Config/Controls.php index 538e77c..460f984 100644 --- a/src/Config/Controls.php +++ b/src/Config/Controls.php @@ -221,7 +221,7 @@ trait Controls throw new InvalidArgumentException('you should use a `SplFileObject` Constant'); } - $this->flags = $flags|SplFileObject::READ_CSV|SplFileObject::DROP_NEW_LINE; + $this->flags = $flags|SplFileObject::READ_CSV; return $this; } diff --git a/test/ControlsTest.php b/test/ControlsTest.php index 0ed477c..ea4c45c 100644 --- a/test/ControlsTest.php +++ b/test/ControlsTest.php @@ -178,7 +178,6 @@ class ControlsTest extends PHPUnit_Framework_TestCase $this->csv->setFlags(SplFileObject::SKIP_EMPTY); $this->assertSame(SplFileObject::SKIP_EMPTY, $this->csv->getFlags() & SplFileObject::SKIP_EMPTY); $this->assertSame(SplFileObject::READ_CSV, $this->csv->getFlags() & SplFileObject::READ_CSV); - $this->assertSame(SplFileObject::DROP_NEW_LINE, $this->csv->getFlags() & SplFileObject::DROP_NEW_LINE); $this->csv->setFlags(-3); } |