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 f7c23a4 commit 0da2d66Copy full SHA for 0da2d66
lib/PhpParser/Node/Param.php
@@ -71,6 +71,10 @@ public function isPromoted(): bool {
71
return $this->flags !== 0 || $this->hooks !== [];
72
}
73
74
+ public function isFinal(): bool {
75
+ return (bool) ($this->flags & Modifiers::FINAL);
76
+ }
77
+
78
public function isPublic(): bool {
79
$public = (bool) ($this->flags & Modifiers::PUBLIC);
80
if ($public) {
test/PhpParser/Node/ParamTest.php
@@ -35,6 +35,7 @@ public static function provideModifiers() {
35
['protected'],
36
['private'],
37
['readonly'],
38
+ ['final'],
39
];
40
41
0 commit comments