@@ -24,7 +24,7 @@ public function __construct(array $children)
2424 */
2525 public function getTags (): array
2626 {
27- return array_filter ($ this ->children , function (PhpDocChildNode $ child ): bool {
27+ return array_filter ($ this ->children , static function (PhpDocChildNode $ child ): bool {
2828 return $ child instanceof PhpDocTagNode;
2929 });
3030 }
@@ -36,7 +36,7 @@ public function getTags(): array
3636 */
3737 public function getTagsByName (string $ tagName ): array
3838 {
39- return array_filter ($ this ->getTags (), function (PhpDocTagNode $ tag ) use ($ tagName ): bool {
39+ return array_filter ($ this ->getTags (), static function (PhpDocTagNode $ tag ) use ($ tagName ): bool {
4040 return $ tag ->name === $ tagName ;
4141 });
4242 }
@@ -48,7 +48,7 @@ public function getTagsByName(string $tagName): array
4848 public function getVarTagValues (): array
4949 {
5050 return array_column (
51- array_filter ($ this ->getTagsByName ('@var ' ), function (PhpDocTagNode $ tag ): bool {
51+ array_filter ($ this ->getTagsByName ('@var ' ), static function (PhpDocTagNode $ tag ): bool {
5252 return $ tag ->value instanceof VarTagValueNode;
5353 }),
5454 'value '
@@ -62,7 +62,7 @@ public function getVarTagValues(): array
6262 public function getParamTagValues (): array
6363 {
6464 return array_column (
65- array_filter ($ this ->getTagsByName ('@param ' ), function (PhpDocTagNode $ tag ): bool {
65+ array_filter ($ this ->getTagsByName ('@param ' ), static function (PhpDocTagNode $ tag ): bool {
6666 return $ tag ->value instanceof ParamTagValueNode;
6767 }),
6868 'value '
@@ -76,7 +76,7 @@ public function getParamTagValues(): array
7676 public function getReturnTagValues (): array
7777 {
7878 return array_column (
79- array_filter ($ this ->getTagsByName ('@return ' ), function (PhpDocTagNode $ tag ): bool {
79+ array_filter ($ this ->getTagsByName ('@return ' ), static function (PhpDocTagNode $ tag ): bool {
8080 return $ tag ->value instanceof ReturnTagValueNode;
8181 }),
8282 'value '
@@ -90,7 +90,7 @@ public function getReturnTagValues(): array
9090 public function getThrowsTagValues (): array
9191 {
9292 return array_column (
93- array_filter ($ this ->getTagsByName ('@throws ' ), function (PhpDocTagNode $ tag ): bool {
93+ array_filter ($ this ->getTagsByName ('@throws ' ), static function (PhpDocTagNode $ tag ): bool {
9494 return $ tag ->value instanceof ThrowsTagValueNode;
9595 }),
9696 'value '
@@ -104,7 +104,7 @@ public function getThrowsTagValues(): array
104104 public function getPropertyTagValues (): array
105105 {
106106 return array_column (
107- array_filter ($ this ->getTagsByName ('@property ' ), function (PhpDocTagNode $ tag ): bool {
107+ array_filter ($ this ->getTagsByName ('@property ' ), static function (PhpDocTagNode $ tag ): bool {
108108 return $ tag ->value instanceof PropertyTagValueNode;
109109 }),
110110 'value '
@@ -118,7 +118,7 @@ public function getPropertyTagValues(): array
118118 public function getPropertyReadTagValues (): array
119119 {
120120 return array_column (
121- array_filter ($ this ->getTagsByName ('@property-read ' ), function (PhpDocTagNode $ tag ): bool {
121+ array_filter ($ this ->getTagsByName ('@property-read ' ), static function (PhpDocTagNode $ tag ): bool {
122122 return $ tag ->value instanceof PropertyTagValueNode;
123123 }),
124124 'value '
@@ -132,7 +132,7 @@ public function getPropertyReadTagValues(): array
132132 public function getPropertyWriteTagValues (): array
133133 {
134134 return array_column (
135- array_filter ($ this ->getTagsByName ('@property-write ' ), function (PhpDocTagNode $ tag ): bool {
135+ array_filter ($ this ->getTagsByName ('@property-write ' ), static function (PhpDocTagNode $ tag ): bool {
136136 return $ tag ->value instanceof PropertyTagValueNode;
137137 }),
138138 'value '
@@ -146,7 +146,7 @@ public function getPropertyWriteTagValues(): array
146146 public function getMethodTagValues (): array
147147 {
148148 return array_column (
149- array_filter ($ this ->getTagsByName ('@method ' ), function (PhpDocTagNode $ tag ): bool {
149+ array_filter ($ this ->getTagsByName ('@method ' ), static function (PhpDocTagNode $ tag ): bool {
150150 return $ tag ->value instanceof MethodTagValueNode;
151151 }),
152152 'value '
0 commit comments