It seems like env('PAPERTRAIL_PORT') can also be of type string and boolean; however, parameter $port of Monolog\Handler\SyslogUdpHandler::__construct() does only seem to accept integer, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
32
$syslogHandler = new SyslogUdpHandler(env('PAPERTRAIL_URL'), /** @scrutinizer ignore-type */ env('PAPERTRAIL_PORT'));
Loading history...
33
34
$formatter = new LineFormatter('%channel%.%level_name%: %message% %extra%');