zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
99 stars 56 forks source link

Fixes Symfony\Component\ErrorHandler\Error\FatalError exception #55

Closed iquad closed 2 years ago

iquad commented 2 years ago

Since Symfony translation FileLoader now using type-hints, it should fix fatal error on php 8.1

martinfiset commented 2 years ago

It doesn't by itself. Problem is still there if you only change that file. You also need to change line 43 in the MoFileLoader.php with the same code.

protected function loadResource(string $resource): array

iquad commented 2 years ago

@martinfiset you are right, sorry for hurry, my valet was on 500 state, and all I was getting was that error.

Should be fixed now.

ruaq commented 2 years ago

fixes #54