File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -72,27 +72,27 @@ final class ClassType
72
72
private $ cases = [];
73
73
74
74
75
- public static function class (string $ name = null , PhpNamespace $ namespace = null ): self
75
+ public static function class (? string $ name ): self
76
76
{
77
- return new self ($ name, $ namespace );
77
+ return new self ($ name );
78
78
}
79
79
80
80
81
- public static function interface (string $ name = null , PhpNamespace $ namespace = null ): self
81
+ public static function interface (string $ name ): self
82
82
{
83
- return (new self ($ name, $ namespace ))->setType (self ::TYPE_INTERFACE );
83
+ return (new self ($ name ))->setType (self ::TYPE_INTERFACE );
84
84
}
85
85
86
86
87
- public static function trait (string $ name = null , PhpNamespace $ namespace = null ): self
87
+ public static function trait (string $ name ): self
88
88
{
89
- return (new self ($ name, $ namespace ))->setType (self ::TYPE_TRAIT );
89
+ return (new self ($ name ))->setType (self ::TYPE_TRAIT );
90
90
}
91
91
92
92
93
- public static function enum (string $ name = null , PhpNamespace $ namespace = null ): self
93
+ public static function enum (string $ name ): self
94
94
{
95
- return (new self ($ name, $ namespace ))->setType (self ::TYPE_ENUM );
95
+ return (new self ($ name ))->setType (self ::TYPE_ENUM );
96
96
}
97
97
98
98
You can’t perform that action at this time.
0 commit comments