Closed matiaslauriti closed 9 months ago
I am getting a warning on my Laravel project using PHPStan, because it correctly understands what is being defined on the @return in https://github.com/mcamara/laravel-localization/blob/afe2e677f280dfdb19ceebb5f8cfe894fb036c17/src/Mcamara/LaravelLocalization/LaravelLocalization.php#L154.
@return
The description correctly says it may return null, but the type is not inferring it so this fixes it.
null
I am getting a warning on my Laravel project using PHPStan, because it correctly understands what is being defined on the
@return
in https://github.com/mcamara/laravel-localization/blob/afe2e677f280dfdb19ceebb5f8cfe894fb036c17/src/Mcamara/LaravelLocalization/LaravelLocalization.php#L154.The description correctly says it may return
null
, but the type is not inferring it so this fixes it.