Skip to content

Commit a190054

Browse files
committed
Remove usages of the deprecated helpers
1 parent b83c25f commit a190054

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Loggable.php

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

55
use Monolog\Logger;
6+
use Illuminate\Support\Str;
67
use Symfony\Component\Console\Input\InputInterface;
78
use Illuminated\Console\Exceptions\ExceptionHandler;
89
use Symfony\Component\Console\Output\OutputInterface;
@@ -126,7 +127,7 @@ private function getChannelHandlers()
126127

127128
private function isLoggableChannelTrait($name)
128129
{
129-
return starts_with($name, __NAMESPACE__ . '\Loggable') && ends_with($name, 'Channel');
130+
return Str::startsWith($name, __NAMESPACE__ . '\Loggable') && Str::endsWith($name, 'Channel');
130131
}
131132

132133
protected function icLogger()

0 commit comments

Comments
 (0)