Handler

Illuminate\Foundation\Exceptions\Handler

class src/Illuminate/Foundation/Exceptions/Handler.php

__construct

v11.0.0 以前から

__construct(Illuminate\Contracts\Container\Container $container)
@param \Illuminate\Contracts\Container\Container $container
  1. v11.0.0 追加
    変更後
    __construct(Illuminate\Contracts\Container\Container $container) [@param \Illuminate\Contracts\Container\Container $container, @return void]
  2. v12.4.0 シグネチャ変更
    変更前
    __construct(Illuminate\Contracts\Container\Container $container) [@param \Illuminate\Contracts\Container\Container $container, @return void]
    変更後
    __construct(Illuminate\Contracts\Container\Container $container) [@param \Illuminate\Contracts\Container\Container $container]

buildContextForException

v13.6.0 から

buildContextForException(Throwable $e)
@return array<array-key, mixed>
  1. v13.6.0 追加
    変更後
    buildContextForException(Throwable $e) [@return array<array-key, mixed>]

buildContextUsing

v11.0.0 以前から

buildContextUsing(Closure $contextCallback)
@param \Closure $contextCallback
@return $this
  1. v11.0.0 追加
    変更後
    buildContextUsing(Closure $contextCallback) [@param \Closure $contextCallback, @return $this]

contextForException

v13.30.0 から

contextForException(Throwable $e)
@param \Throwable $e
@return array
  1. v13.30.0 追加
    変更後
    contextForException(Throwable $e) [@param \Throwable $e, @return array]

dontFlash

v11.0.0 以前から

dontFlash(array|string $attributes)
@param array|string $attributes
@return $this
  1. v11.0.0 追加
    変更後
    dontFlash(array|string $attributes) [@param array|string $attributes, @return $this]

dontReport

v11.0.0 以前から

dontReport(array|string $exceptions)
@param array|string $exceptions
@return $this
  1. v11.0.0 追加
    変更後
    dontReport(array|string $exceptions) [@param array|string $exceptions, @return $this]

dontReportDuplicates

v11.0.0 以前から

dontReportDuplicates()
@return $this
  1. v11.0.0 追加
    変更後
    dontReportDuplicates() [@return $this]

dontReportWhen

v12.21.0 から

dontReportWhen(callable $dontReportWhen)
@param (callable(\Throwable): bool) $dontReportWhen
@return $this
  1. v12.21.0 追加
    変更後
    dontReportWhen(callable $dontReportWhen) [@param callable $dontReportWhen, @return $this]
  2. v12.22.0 シグネチャ変更
    変更前
    dontReportWhen(callable $dontReportWhen) [@param callable $dontReportWhen, @return $this]
    変更後
    dontReportWhen(callable $dontReportWhen) [@param (callable(\Throwable): bool) $dontReportWhen, @return $this]

dontRetry

v13.17.0 から

dontRetry(array|string $exceptions)
@param array|string $exceptions
@return $this
  1. v13.17.0 追加
    変更後
    dontRetry(array|string $exceptions) [@param array|string $exceptions, @return $this]

dontRetryWhen

v13.17.0 から

dontRetryWhen(callable $dontRetryWhen)
@param (callable(\Throwable): bool) $dontRetryWhen
@return $this
  1. v13.17.0 追加
    変更後
    dontRetryWhen(callable $dontRetryWhen) [@param (callable(\Throwable): bool) $dontRetryWhen, @return $this]

ignore

v11.0.0 以前から

ignore(array|string $exceptions)
@param array|string $exceptions
@return $this
  1. v11.0.0 追加
    変更後
    ignore(array|string $exceptions) [@return $this]
  2. v11.2.0 シグネチャ変更
    変更前
    ignore(array|string $exceptions) [@return $this]
    変更後
    ignore(array|string $exceptions) [@param array|string $exceptions, @return $this]

isReporting

v13.6.0 から

isReporting(Throwable $e): bool
  1. v13.6.0 追加
    変更後
    isReporting(Throwable $e): bool

level

v11.0.0 以前から

level($type, $level)
@param class-string<\Throwable> $type
@param \Psr\Log\LogLevel::* $level
@return $this
  1. v11.0.0 追加
    変更後
    level($type, $level) [@param class-string<\Throwable> $type, @param \Psr\Log\LogLevel::* $level, @return $this]

map

v11.0.0 以前から

map($from, $to = null)
@param \Closure|string $from
@param \Closure|string|null $to
@return $this
  1. v11.0.0 追加
    変更後
    map($from, $to = null) [@param \Closure|string $from, @param \Closure|string|null $to, @return $this]

register

v11.0.0 以前から

register()
@return void
  1. v11.0.0 追加
    変更後
    register() [@return void]

render

v11.0.0 以前から

render($request, Throwable $e)
@param \Illuminate\Http\Request $request
@param \Throwable $e
@return \Symfony\Component\HttpFoundation\Response
  1. v11.0.0 追加
    変更後
    render($request, Throwable $e) [@param \Illuminate\Http\Request $request, @param \Throwable $e, @return \Symfony\Component\HttpFoundation\Response]

renderable

v11.0.0 以前から

renderable(callable $renderUsing)
@param callable $renderUsing
@return $this
  1. v11.0.0 追加
    変更後
    renderable(callable $renderUsing) [@param callable $renderUsing, @return $this]

report

v11.0.0 以前から

report(Throwable $e)
@param \Throwable $e
@return void
  1. v11.0.0 追加
    変更後
    report(Throwable $e) [@param \Throwable $e, @return void]

reportable

v11.0.0 以前から

reportable(callable $reportUsing)
@param callable $reportUsing
@return \Illuminate\Foundation\Exceptions\ReportableHandler
  1. v11.0.0 追加
    変更後
    reportable(callable $reportUsing) [@param callable $reportUsing, @return \Illuminate\Foundation\Exceptions\ReportableHandler]

respondUsing

v11.0.0 以前から

respondUsing($callback)
@param callable $callback
@return $this
  1. v11.0.0 追加
    変更後
    respondUsing($callback) [@param callable $callback, @return $this]

shouldRenderJsonWhen

v11.0.0 以前から

shouldRenderJsonWhen($callback)
@param callable(\Illuminate\Http\Request $request, \Throwable): bool $callback
@return $this
  1. v11.0.0 追加
    変更後
    shouldRenderJsonWhen($callback) [@param callable(\Illuminate\Http\Request $request, \Throwable): bool $callback, @return $this]

shouldReport

v11.0.0 以前から

shouldReport(Throwable $e)
@param \Throwable $e
@return bool
  1. v11.0.0 追加
    変更後
    shouldReport(Throwable $e) [@param \Throwable $e, @return bool]

shouldStopRetries

v13.17.0 から

shouldStopRetries(Throwable $e)
@param \Throwable $e
@return bool
  1. v13.17.0 追加
    変更後
    shouldStopRetries(Throwable $e) [@param \Throwable $e, @return bool]

stopIgnoring

v11.0.0 以前から

stopIgnoring(array|string $exceptions)
@param array|string $exceptions
@return $this
  1. v11.0.0 追加
    変更後
    stopIgnoring(array|string $exceptions) [@param array|string $exceptions, @return $this]

throttleUsing

v11.0.0 以前から

throttleUsing(callable $throttleUsing)
@param callable $throttleUsing
@return $this
  1. v11.0.0 追加
    変更後
    throttleUsing(callable $throttleUsing) [@param callable $throttleUsing, @return $this]
@internal のメソッド(1)

renderForConsole

v11.0.0 以前から

@internal

renderForConsole($output, Throwable $e)
@param \Symfony\Component\Console\Output\OutputInterface $output
@param \Throwable $e
@return void
  1. v11.0.0 追加
    変更後
    renderForConsole($output, Throwable $e) [@param \Symfony\Component\Console\Output\OutputInterface $output, @param \Throwable $e, @return void]