File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function insert_top(PrototypeElement $node):PrototypeElement;
6565 public function insert_bottom (PrototypeElement $ node ):PrototypeElement ;
6666
6767 /**
68- * Returns the element tag name (convenience method)
68+ * Returns the element tag name (convenience method) or null if the property doesn't exist
6969 */
70- public function tag ():string ;
70+ public function tag ():? string ;
7171}
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public function insert_bottom(PrototypeElement $node):PrototypeElement{
119119 /**
120120 * @inheritDoc
121121 */
122- public function tag ():string {
123- return $ this ->tagName ;
122+ public function tag ():? string {
123+ return $ this ->tagName ?? null ;
124124 }
125125}
You can’t perform that action at this time.
0 commit comments