File tree 5 files changed +5
-5
lines changed
src/RestructuredText/Directives 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function process(
60
60
): Node |null {
61
61
return $ this ->processNode ($ blockContext , $ directive )
62
62
// Ensure options are always available
63
- ->withDefaultOptions ($ this ->optionsToArray ($ directive ->getOptions ()));
63
+ ->withKeepExistingOptions ($ this ->optionsToArray ($ directive ->getOptions ()));
64
64
}
65
65
66
66
/**
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ final public function process(
44
44
return null ;
45
45
}
46
46
47
- return $ node ->withDefaultOptions ($ this ->optionsToArray ($ directive ->getOptions ()));
47
+ return $ node ->withKeepExistingOptions ($ this ->optionsToArray ($ directive ->getOptions ()));
48
48
}
49
49
50
50
/** @return Rule<CollectionNode> */
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function withOptions(array $options): Node
37
37
}
38
38
39
39
/** {@inheritDoc} */
40
- public function withDefaultOptions (array $ options ): Node
40
+ public function withKeepExistingOptions (array $ options ): Node
41
41
{
42
42
return $ this ;
43
43
}
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function withOptions(array $options): Node
96
96
*
97
97
* @return static
98
98
*/
99
- public function withDefaultOptions (array $ options ): Node
99
+ public function withKeepExistingOptions (array $ options ): Node
100
100
{
101
101
$ result = clone $ this ;
102
102
$ result ->options = [...$ options , ...$ result ->options ];
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function getOptions(): array;
22
22
public function withOptions (array $ options ): Node ;
23
23
24
24
/** @param array<string, scalar|null> $options */
25
- public function withDefaultOptions (array $ options ): Node ;
25
+ public function withKeepExistingOptions (array $ options ): Node ;
26
26
27
27
public function hasOption (string $ name ): bool ;
28
28
You can’t perform that action at this time.
0 commit comments