Skip to content

Commit a6820ee

Browse files
authored
Merge pull request #32481 from laravel/deprecate-old-classes
[8.x] Deprecate old collection and macroable objects
2 parents 808e214 + 809015c commit a6820ee

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

src/Illuminate/Support/Arr.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Illuminate\Collections\Arr as BaseArr;
66

7+
/**
8+
* @deprecated Will be removed in a future Laravel version.
9+
*/
710
class Arr extends BaseArr
811
{
912
//

src/Illuminate/Support/Collection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Illuminate\Collections\Collection as BaseCollection;
66

7+
/**
8+
* @deprecated Will be removed in a future Laravel version.
9+
*/
710
class Collection extends BaseCollection
811
{
912
/**

src/Illuminate/Support/Enumerable.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Illuminate\Collections\Enumerable as BaseEnumerable;
66

7+
/**
8+
* @deprecated Will be removed in a future Laravel version.
9+
*/
710
interface Enumerable extends BaseEnumerable
811
{
912
//

src/Illuminate/Support/LazyCollection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use Closure;
66
use Illuminate\Collections\LazyCollection as BaseLazyCollection;
77

8+
/**
9+
* @deprecated Will be removed in a future Laravel version.
10+
*/
811
class LazyCollection extends BaseLazyCollection
912
{
1013
/**

src/Illuminate/Support/Traits/Macroable.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Illuminate\Macroable\Macroable as BaseMacroable;
66

7+
/**
8+
* @deprecated Will be removed in a future Laravel version.
9+
*/
710
trait Macroable
811
{
912
use BaseMacroable;

0 commit comments

Comments
 (0)