[FrameworkBundle] metadata_update_threshold default value must be an int

This commit is contained in:
Kévin Dunglas 2018-11-15 18:25:12 +01:00
parent dbf053bc85
commit b7e7c46f43
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6
2 changed files with 2 additions and 2 deletions

View File

@ -492,7 +492,7 @@ class Configuration implements ConfigurationInterface
->scalarNode('gc_maxlifetime')->end()
->scalarNode('save_path')->defaultValue('%kernel.cache_dir%/sessions')->end()
->integerNode('metadata_update_threshold')
->defaultValue('0')
->defaultValue(0)
->info('seconds to wait between 2 session metadata updates')
->end()
->end()

View File

@ -235,7 +235,7 @@ class ConfigurationTest extends TestCase
'cookie_samesite' => null,
'gc_probability' => 1,
'save_path' => '%kernel.cache_dir%/sessions',
'metadata_update_threshold' => '0',
'metadata_update_threshold' => 0,
),
'request' => array(
'enabled' => false,