From 52a0119492c25d2022a583967a70cc23ad08c4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gamez?= Date: Fri, 13 Jul 2018 16:34:01 +0200 Subject: [PATCH] Replace illuminate/support with tightenco/collect --- composer.json | 4 ++-- src/Parsers/CSVParser.php | 2 +- src/Parsers/JSONParser.php | 2 +- src/Parsers/XMLParser.php | 2 +- tests/Parsers/CSVParserTest.php | 2 +- tests/Parsers/JSONParserTest.php | 2 +- tests/Parsers/XMLParserTest.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) 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 {