Skip to content

Commit

Permalink
Merge pull request #10 from mercuryseries/patch-2
Browse files Browse the repository at this point in the history
Add TreeBuilder return type declaration and remove cannotBeEmpty for domain
  • Loading branch information
dneustadt authored May 31, 2023
2 parents b38013e + 755a295 commit b43623f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('dneustadt_csrf_cookie');
$rootNode = $treeBuilder->getRootNode();
Expand All @@ -22,7 +22,7 @@ public function getConfigTreeBuilder()
->scalarNode('name')->cannotBeEmpty()->defaultValue('XSRF-TOKEN')->end()
->integerNode('expire')->defaultValue(0)->end()
->scalarNode('path')->cannotBeEmpty()->defaultValue('/')->end()
->scalarNode('domain')->cannotBeEmpty()->defaultValue(null)->end()
->scalarNode('domain')->defaultNull()->end()
->booleanNode('secure')->defaultFalse()->end()
->scalarNode('header')->cannotBeEmpty()->defaultValue('X-XSRF-TOKEN')->end()
->scalarNode('sameSite')->cannotBeEmpty()->defaultValue(Cookie::SAMESITE_LAX)->end()
Expand Down

0 comments on commit b43623f

Please sign in to comment.