Skip to content

Commit e313277

Browse files
committed
Substitute str_replace_last with the respective Str helper
to remove the seemingly last occurence of the now obsolete str_* methods and with that the dependency on laravel/helpers package
1 parent 38de27e commit e313277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/InstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace OwenIt\Auditing\Console;
44

5-
use Illuminate\Support\Str;
65
use Illuminate\Console\Command;
76
use Illuminate\Console\DetectsApplicationNamespace;
7+
use Illuminate\Support\Str;
88

99
class InstallCommand extends Command
1010
{
@@ -43,7 +43,7 @@ public function handle()
4343
*/
4444
protected function registerAuditingServiceProvider()
4545
{
46-
$namespace = str_replace_last('\\', '', $this->getAppNamespace());
46+
$namespace = Str::replaceLast('\\', '', $this->getAppNamespace());
4747

4848
$appConfig = file_get_contents(config_path('app.php'));
4949

0 commit comments

Comments
 (0)