We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa9092 commit 811f985Copy full SHA for 811f985
src/Data/XMLElement.php
@@ -16,7 +16,7 @@ class XMLElement extends SimpleXMLElement
16
*/
17
public function attribute(string $name, mixed $default = null): mixed
18
{
19
- return !is_null($this->attributes()->{$name}) ? (string)$this->attributes()->{$name} : $default;
+ return ! is_null($this->attributes()->{$name}) ? (string)$this->attributes()->{$name} : $default;
20
}
21
22
/**
0 commit comments