Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 09f2b57

Browse files
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‎

Lines changed: 2 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /