@@ -41,7 +41,7 @@ public function getCompiler()
4141 *
4242 * @return ElementInterface[]
4343 */
44- public function getCompiledNodeList ($ nodeList , ElementInterface $ element = null )
44+ public function getCompiledNodeList ($ nodeList , ? ElementInterface $ element = null )
4545 {
4646 return array_values (array_filter (array_map (
4747 function (NodeInterface $ childNode ) use ($ element ) {
@@ -59,7 +59,7 @@ function (NodeInterface $childNode) use ($element) {
5959 *
6060 * @return ElementInterface[]
6161 */
62- public function getCompiledChildren (NodeInterface $ node , ElementInterface $ element = null )
62+ public function getCompiledChildren (NodeInterface $ node , ? ElementInterface $ element = null )
6363 {
6464 return $ this ->getCompiledNodeList ($ node ->getChildren (), $ element );
6565 }
@@ -71,7 +71,7 @@ public function getCompiledChildren(NodeInterface $node, ElementInterface $eleme
7171 * @param NodeInterface $node
7272 * @param ElementInterface|null $element
7373 */
74- public function compileNodeChildren (NodeInterface $ node , ElementInterface $ element = null )
74+ public function compileNodeChildren (NodeInterface $ node , ? ElementInterface $ element = null )
7575 {
7676 $ children = array_filter ($ node ->getChildren ());
7777 array_walk ($ children , function (NodeInterface $ childNode ) use ($ element ) {
@@ -109,7 +109,7 @@ protected function getTextChildren(ParserNodeInterface $node)
109109 }, $ children ));
110110 }
111111
112- private function compileParserNode (NodeInterface $ node , ElementInterface $ element = null )
112+ private function compileParserNode (NodeInterface $ node , ? ElementInterface $ element = null )
113113 {
114114 return $ node instanceof ParserNodeInterface
115115 ? $ this ->getCompiler ()->compileNode ($ node , $ element )
0 commit comments