Skip to content

Commit 09f2b57

Browse files
committed
remove default
1 parent 44d80c4 commit 09f2b57

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Ast/BaseNode.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@ public function hasAttribute(string $key): bool
2323
}
2424

2525
/**
26-
* @param mixed|null $default
2726
* @return mixed|null
2827
*/
29-
public function getAttribute(string $key, $default = null)
28+
public function getAttribute(string $key)
3029
{
3130
if ($this->hasAttribute($key)) {
3231
return $this->attributes[$key];
3332
}
3433

35-
return $default;
34+
return null;
3635
}
3736

3837
}

0 commit comments

Comments
 (0)