Open mr-feek opened 2 years ago
Going to leave this open while i ponder how types might change depending on environment configuration
note: always add the type of the default value to the return union type
I made a preliminary PR to at least correct the basic typehint of config
which i will ship first https://github.com/psalm/psalm-plugin-laravel/pull/230
This PR should tighten the return types of the
config
helper to be the actual resolved type at runtime, rather thanRepository|mixed
.This should result in proper types being returned, and reducing the number of
PossiblyInvalidCast
that psalm emits after using theconfig
helper