Set service to null by default #73
Annotations
10 errors
PossiblyInvalidPropertyAssignmentValue:
src/Cache.php#L40
src/Cache.php:40:24: PossiblyInvalidPropertyAssignmentValue: $this->cache with declared type 'Illuminate\Cache\CacheManager' cannot be assigned possibly different type 'Illuminate\Cache\CacheManager|Illuminate\Cache\TaggedCache' (see https://psalm.dev/147)
|
DeprecatedMethod:
src/Console/Clear.php#L32
src/Console/Clear.php:32:16: DeprecatedMethod: The method InteractionDesignFoundation\GeoIP\Console\Clear::fire has been marked as deprecated (see https://psalm.dev/001)
|
DeprecatedMethod:
src/Console/Update.php#L32
src/Console/Update.php:32:16: DeprecatedMethod: The method InteractionDesignFoundation\GeoIP\Console\Update::fire has been marked as deprecated (see https://psalm.dev/001)
|
InvalidParamDefault:
src/Contracts/ServiceInterface.php#L35
src/Contracts/ServiceInterface.php:35:21: InvalidParamDefault: Default value type array<never, never> for argument 1 of method InteractionDesignFoundation\GeoIP\Contracts\ServiceInterface::hydrate does not match the given type array{cached?: bool, city: null|string, continent: null|string, country: null|string, currency?: null|string, default?: bool, ip: string, iso_code: null|string, lat: float|null, lon: float|null, postal_code: null|string, state: null|string, state_name: null|string, timezone: null|string} (see https://psalm.dev/062)
|
InvalidParamDefault:
src/Contracts/ServiceInterface.php#L35
src/Contracts/ServiceInterface.php:35:21: InvalidParamDefault: Default value type array<never, never> for argument 1 of method InteractionDesignFoundation\GeoIP\Services\AbstractService::hydrate does not match the given type array{cached?: bool, city: null|string, continent: null|string, country: null|string, currency?: null|string, default?: bool, ip: string, iso_code: null|string, lat: float|null, lon: float|null, postal_code: null|string, state: null|string, state_name: null|string, timezone: null|string} (see https://psalm.dev/062)
|
DeprecatedMethod:
src/GeoIP.php#L98
src/GeoIP.php:98:23: DeprecatedMethod: The method InteractionDesignFoundation\GeoIP\Cache::setPrefix has been marked as deprecated (see https://psalm.dev/001)
|
DeprecatedProperty:
src/GeoIP.php#L107
src/GeoIP.php:107:9: DeprecatedProperty: InteractionDesignFoundation\GeoIP\GeoIP::$remote_ip is marked deprecated (see https://psalm.dev/099)
|
RiskyTruthyFalsyComparison:
src/GeoIP.php#L142
src/GeoIP.php:142:15: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
DeprecatedProperty:
src/GeoIP.php#L142
src/GeoIP.php:142:22: DeprecatedProperty: InteractionDesignFoundation\GeoIP\GeoIP::$remote_ip is marked deprecated (see https://psalm.dev/099)
|
RiskyTruthyFalsyComparison:
src/GeoIP.php#L158
src/GeoIP.php:158:21: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|