Skip to content

integer cast on cache_lifetime return 0 instead of null if not provided #215

@lwillems

Description

@lwillems

in BazingaGeocoderExtension

$container->register($providerServiceId.'.cache', CachePlugin::class) ->setPublic(false) ->setArguments([new Reference($cacheServiceId), (int) $config['cache_lifetime'], $config['cache_precision']]);

casting argument as (int) make it default to 0 in cachePlugin __construct instead of null if provided in yaml conf :
cache_lifetime: ~

Consequence : infinite caching is not possible

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions