File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ protected function getRootDefinition(TreeBuilder $treeBuilder): ArrayNodeDefinit
171171 ->end ()
172172 ->end ()
173173 ->children ()
174- ->arrayNode ('backend ' )
174+ ->arrayNode ('backend ' )-> ignoreExtraKeys ( true )
175175 ->children ()
176176 ->scalarNode ('size ' )->end ()
177177 ->scalarNode ('containerSize ' )->end ()
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ public function testValidJobFull(): void
7474 'type ' => 'large ' ,
7575 'containerType ' => 'small ' ,
7676 'context ' => 'wml ' ,
77+ 'backendExtraKey ' => 'ignored ' ,
7778 ],
7879 'metrics ' => [
7980 'storage ' => [
@@ -92,6 +93,7 @@ public function testValidJobFull(): void
9293 'runnerId ' => $ runnerId ,
9394 ];
9495 unset($ data ['extraKey ' ]);
96+ unset($ data ['backend ' ]['backendExtraKey ' ]);
9597 unset($ data ['metrics ' ]['storage ' ]['storageExtraKey ' ]);
9698 unset($ data ['metrics ' ]['backend ' ]['backendExtraKey ' ]);
9799 $ definition = new FullJobDefinition ();
You can’t perform that action at this time.
0 commit comments