@@ -113,7 +113,7 @@ public static function getter(PhpVariable $var, array $source = []): self
113113 * @param PhpParam[] $params
114114 * @param array<array-key, string|string[]> $source
115115 */
116- public static function public (string $ identifier , array $ params , array $ source , Type $ type = null ): self
116+ public static function public (string $ identifier , array $ params , array $ source , ? Type $ type = null ): self
117117 {
118118 return new self (self ::PUBLIC_ACCESS , $ identifier , $ params , $ source , $ type ?? Type::empty ());
119119 }
@@ -122,7 +122,7 @@ public static function public(string $identifier, array $params, array $source,
122122 * @param PhpParam[] $params
123123 * @param array<array-key, string|string[]> $source
124124 */
125- public static function private (string $ identifier , array $ params , array $ source , Type $ type = null ): self
125+ public static function private (string $ identifier , array $ params , array $ source , ? Type $ type = null ): self
126126 {
127127 return new self (self ::PRIVATE_ACCESS , $ identifier , $ params , $ source , $ type ?? Type::empty ());
128128 }
@@ -131,7 +131,7 @@ public static function private(string $identifier, array $params, array $source,
131131 * @param PhpParam[] $params
132132 * @param array<array-key, string|string[]> $source
133133 */
134- public static function protected (string $ identifier , array $ params , array $ source , Type $ type = null ): self
134+ public static function protected (string $ identifier , array $ params , array $ source , ? Type $ type = null ): self
135135 {
136136 return new self (self ::PROTECTED_ACCESS , $ identifier , $ params , $ source , $ type ?? Type::empty ());
137137 }
0 commit comments