marvinlabs / laravel-discord-logger

Logging to a discord channel in Laravel
MIT License
176 stars 41 forks source link

PHP Version requirement error #48

Closed oparreche closed 11 months ago

oparreche commented 11 months ago

public function write(array|LogRecord $record): void { if ($record instanceof LogRecord) { $record = $record->toArray(); } foreach($this->recordToMessage->buildMessages($record) as $message) { try { $this->discord->send($message); } catch (\Exception $e) { if (!$this->ignoreExceptions) { throw $e; } } } }

This function doesn't works on PHP versions < 8.0
vpratfr commented 11 months ago

We will not support PHP 7.x

Sorry.