Skip to content

Commit 560e34e

Browse files
update to use Str class
1 parent 3783741 commit 560e34e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CascadeSoftDeleteException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Iatstuti\Database\Support;
44

55
use Exception;
6+
use Illuminate\Support\Str;
67

78
class CascadeSoftDeleteException extends Exception
89
{
@@ -16,7 +17,7 @@ public static function invalidRelationships($relationships)
1617
{
1718
return new static(sprintf(
1819
'%s [%s] must exist and return an object of type Illuminate\Database\Eloquent\Relations\Relation',
19-
str_plural('Relationship', count($relationships)),
20+
Str::plural('Relationship', count($relationships)),
2021
join(', ', $relationships)
2122
));
2223
}

0 commit comments

Comments
 (0)