Skip to content

Commit ece1a77

Browse files
paulinevosGromNaN
andcommitted
Update src/Eloquent/SoftDeletes.php
Co-authored-by: Jérôme Tamarelle <[email protected]>
1 parent fc16c9b commit ece1a77

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Eloquent/SoftDeletes.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44

55
namespace MongoDB\Laravel\Eloquent;
66

7-
/** @deprecated 6.0.0 in favor of \Illuminate\Database\Eloquent\SoftDeletes */
7+
use function sprintf;
8+
use function trigger_error;
9+
10+
use const E_USER_DEPRECATED;
11+
12+
trigger_error(sprintf('Since mongodb/laravel-mongodb:5.5, trait "%s" is deprecated, use "%s" instead.', SoftDeletes::class, \Illuminate\Database\Eloquent\SoftDeletes::class), E_USER_DEPRECATED);
13+
14+
/** @deprecated since mongodb/laravel-mongodb:5.5, use \Illuminate\Database\Eloquent\SoftDeletes instead */
815
trait SoftDeletes
916
{
1017
use \Illuminate\Database\Eloquent\SoftDeletes;

0 commit comments

Comments
 (0)