Skip to content

Commit f84f725

Browse files
authored
Convert non-existant namespace (#38449)
1 parent 453508e commit f84f725

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
use ArrayAccess;
66
use ArrayIterator;
7-
use Illuminate\Collections\ItemNotFoundException;
8-
use Illuminate\Collections\MultipleItemsFoundException;
97
use Illuminate\Support\Traits\EnumeratesValues;
108
use Illuminate\Support\Traits\Macroable;
119
use stdClass;
@@ -1110,8 +1108,8 @@ public function splitIn($numberOfGroups)
11101108
* @param mixed $value
11111109
* @return mixed
11121110
*
1113-
* @throws \Illuminate\Collections\ItemNotFoundException
1114-
* @throws \Illuminate\Collections\MultipleItemsFoundException
1111+
* @throws \Illuminate\Support\ItemNotFoundException
1112+
* @throws \Illuminate\Support\MultipleItemsFoundException
11151113
*/
11161114
public function sole($key = null, $operator = null, $value = null)
11171115
{

src/Illuminate/Collections/ItemNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Illuminate\Collections;
3+
namespace Illuminate\Support;
44

55
use RuntimeException;
66

src/Illuminate/Collections/LazyCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,8 +1057,8 @@ public function split($numberOfGroups)
10571057
* @param mixed $value
10581058
* @return mixed
10591059
*
1060-
* @throws \Illuminate\Collections\ItemNotFoundException
1061-
* @throws \Illuminate\Collections\MultipleItemsFoundException
1060+
* @throws \Illuminate\Support\ItemNotFoundException
1061+
* @throws \Illuminate\Support\MultipleItemsFoundException
10621062
*/
10631063
public function sole($key = null, $operator = null, $value = null)
10641064
{

src/Illuminate/Collections/MultipleItemsFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Illuminate\Collections;
3+
namespace Illuminate\Support;
44

55
use RuntimeException;
66

tests/Support/SupportCollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
use ArrayObject;
88
use CachingIterator;
99
use Exception;
10-
use Illuminate\Collections\ItemNotFoundException;
11-
use Illuminate\Collections\MultipleItemsFoundException;
1210
use Illuminate\Contracts\Support\Arrayable;
1311
use Illuminate\Contracts\Support\Jsonable;
1412
use Illuminate\Support\Collection;
1513
use Illuminate\Support\HtmlString;
14+
use Illuminate\Support\ItemNotFoundException;
1615
use Illuminate\Support\LazyCollection;
16+
use Illuminate\Support\MultipleItemsFoundException;
1717
use Illuminate\Support\Str;
1818
use InvalidArgumentException;
1919
use JsonSerializable;

tests/Support/SupportLazyCollectionIsLazyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Illuminate\Tests\Support;
44

5-
use Illuminate\Collections\MultipleItemsFoundException;
65
use Illuminate\Support\LazyCollection;
6+
use Illuminate\Support\MultipleItemsFoundException;
77
use PHPUnit\Framework\TestCase;
88
use stdClass;
99

0 commit comments

Comments
 (0)