Skip to content

Commit 295fe08

Browse files
committed
Added type for class methods
1 parent 31a6e0f commit 295fe08

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Builder/Loader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class: true === $this->withNonStandard ?
110110
new Node\Stmt\ClassMethod(
111111
name: 'fputcsv',
112112
subNodes: [
113+
'type' => Node\Stmt\Class_::MODIFIER_PUBLIC,
113114
'params' => [
114115
new Node\Param(
115116
var: new Node\Expr\Variable('fields'),

src/Builder/MultipleFilesLoader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class: $this->withNonStandard ? new Node\Stmt\Class_(
117117
new Node\Stmt\ClassMethod(
118118
name: 'fputcsv',
119119
subNodes: [
120+
'type' => Node\Stmt\Class_::MODIFIER_PUBLIC,
120121
'params' => [
121122
new Node\Param(
122123
var: new Node\Expr\Variable('fields'),

0 commit comments

Comments
 (0)