diff --git a/composer.json b/composer.json index e64bfcd..698a7e2 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,8 @@ "require": { "php": "^7.0", - "illuminate/support": "5.5.*|5.6.*", - "maxakawizard/json-collection-parser": "^1.1" + "maxakawizard/json-collection-parser": "^1.1", + "tightenco/collect": "^5.5.33" }, "require-dev": { diff --git a/src/Parsers/CSVParser.php b/src/Parsers/CSVParser.php index 07c5398..fd41b1e 100644 --- a/src/Parsers/CSVParser.php +++ b/src/Parsers/CSVParser.php @@ -9,9 +9,9 @@ namespace Rodenastyle\StreamParser\Parsers; -use Illuminate\Support\Collection; use Rodenastyle\StreamParser\Exceptions\IncompleteParseException; use Rodenastyle\StreamParser\StreamParserInterface; +use Tightenco\Collect\Support\Collection; class CSVParser implements StreamParserInterface { diff --git a/src/Parsers/JSONParser.php b/src/Parsers/JSONParser.php index 5cc5e41..d216eb3 100644 --- a/src/Parsers/JSONParser.php +++ b/src/Parsers/JSONParser.php @@ -11,7 +11,7 @@ use Rodenastyle\StreamParser\Services\JsonCollectionParser as Parser; use Rodenastyle\StreamParser\StreamParserInterface; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; class JSONParser implements StreamParserInterface { diff --git a/src/Parsers/XMLParser.php b/src/Parsers/XMLParser.php index a3d9fe0..2206443 100644 --- a/src/Parsers/XMLParser.php +++ b/src/Parsers/XMLParser.php @@ -11,8 +11,8 @@ use Rodenastyle\StreamParser\Exceptions\IncompleteParseException; use Rodenastyle\StreamParser\StreamParserInterface; +use Tightenco\Collect\Support\Collection; use XMLReader; -use Illuminate\Support\Collection; class XMLParser implements StreamParserInterface diff --git a/tests/Parsers/CSVParserTest.php b/tests/Parsers/CSVParserTest.php index 3512d02..0dd750b 100644 --- a/tests/Parsers/CSVParserTest.php +++ b/tests/Parsers/CSVParserTest.php @@ -10,7 +10,7 @@ use PHPUnit\Framework\TestCase; use Rodenastyle\StreamParser\StreamParser; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; class CSVParserTest extends TestCase { diff --git a/tests/Parsers/JSONParserTest.php b/tests/Parsers/JSONParserTest.php index ca171e0..0ad6d77 100644 --- a/tests/Parsers/JSONParserTest.php +++ b/tests/Parsers/JSONParserTest.php @@ -10,7 +10,7 @@ use Rodenastyle\StreamParser\Test\TestCase; use Rodenastyle\StreamParser\StreamParser; -use Illuminate\Support\Collection; +use Tightenco\Collect\Support\Collection; class JSONParserTest extends TestCase { diff --git a/tests/Parsers/XMLParserTest.php b/tests/Parsers/XMLParserTest.php index 2b988c6..3af756d 100644 --- a/tests/Parsers/XMLParserTest.php +++ b/tests/Parsers/XMLParserTest.php @@ -8,11 +8,11 @@ namespace Rodenastyle\StreamParser\Test\Parsers; -use Illuminate\Support\Collection; use Rodenastyle\StreamParser\StreamParser; use Rodenastyle\StreamParser\Test\Contracts\ElementAttributesManagement; use Rodenastyle\StreamParser\Test\Contracts\ElementListManagement; use Rodenastyle\StreamParser\Test\TestCase; +use Tightenco\Collect\Support\Collection; class XMLParserTest extends TestCase implements ElementAttributesManagement, ElementListManagement {