非推奨のヘルパ関数の利用をやめる

This commit is contained in:
shibafu
2020-05-23 22:26:47 +09:00
parent a48fe596e1
commit 74fee83f4e
3 changed files with 8 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Exceptions;
use Illuminate\Support\Arr;
use Throwable;
class CsvImportException extends \RuntimeException
@@ -15,7 +16,7 @@ class CsvImportException extends \RuntimeException
*/
public function __construct(...$errors)
{
parent::__construct(array_first($errors));
parent::__construct(Arr::first($errors));
$this->errors = $errors;
}