@@ -309,8 +309,9 @@ |
||
| 309 | 309 | // second argument, an array for HTML attributes |
| 310 | 310 | $attributes = $arguments[1] ?? []; |
| 311 | 311 | |
| 312 | - if(is_string($content)) |
|
| 313 | - return new Element($tag, $content, $attributes); |
|
| 312 | + if(is_string($content)) { |
|
| 313 | + return new Element($tag, $content, $attributes); |
|
| 314 | + } |
|
| 314 | 315 | |
| 315 | 316 | throw new InvalidArgumentException('missing content or content not a string'); |
| 316 | 317 | } |