Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc1c38f5

Browse files
committed
bug#29233 [FrameworkBundle] metadata_update_threshold default value must be an int (dunglas)
This PR was merged into the 4.2-dev branch.Discussion----------[FrameworkBundle] metadata_update_threshold default value must be an int| Q | A| ------------- | ---| Branch? | master| Bug fix? | yes| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? |no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets | n/a| License | MIT| Doc PR | n/aThe type of the default config value is not in sync with the typehint added to `MetadataBag::__construct()`, so you get an error by default (at least when using strict types):```Type error: Argument 2 passed to Symfony\Component\HttpFoundation\Session\Storage\MetadataBag::__construct() must be of the type integer, string given, called in var/cache/test/ContainerEZ62jzd/getSession_Storage_MockFileService.php on line 23 (Behat\Testwork\Call\Exception\FatalThrowableError)```Commits-------b7e7c46 [FrameworkBundle] metadata_update_threshold default value must be an int
2 parentsdbf053b +b7e7c46 commitc1c38f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ private function addSessionSection(ArrayNodeDefinition $rootNode)
492492
->scalarNode('gc_maxlifetime')->end()
493493
->scalarNode('save_path')->defaultValue('%kernel.cache_dir%/sessions')->end()
494494
->integerNode('metadata_update_threshold')
495-
->defaultValue('0')
495+
->defaultValue(0)
496496
->info('seconds to wait between 2 session metadata updates')
497497
->end()
498498
->end()

‎src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ protected static function getBundleDefaultConfig()
235235
'cookie_samesite' =>null,
236236
'gc_probability' =>1,
237237
'save_path' =>'%kernel.cache_dir%/sessions',
238-
'metadata_update_threshold' =>'0',
238+
'metadata_update_threshold' =>0,
239239
),
240240
'request' =>array(
241241
'enabled' =>false,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp