@@ -73,7 +73,7 @@ class Type implements TypeInterface
7373 */
7474 protected $ map ;
7575
76- public function __construct (string $ type_string , string $ map_class = null )
76+ public function __construct (string $ type_string , ? string $ map_class = null )
7777 {
7878 TypeParser::parse ($ type_string , $ this );
7979 $ this ->map = MapHandler::map ($ map_class );
@@ -104,7 +104,7 @@ public function getMediaComment(): string
104104 throw new UndefinedException ('Media comment is not defined ' );
105105 }
106106
107- public function setMediaComment (string $ comment = null ): TypeInterface
107+ public function setMediaComment (? string $ comment = null ): TypeInterface
108108 {
109109 $ this ->mediaComment = $ comment ;
110110 return $ this ;
@@ -135,7 +135,7 @@ public function getSubTypeComment(): string
135135 throw new UndefinedException ('Subtype comment is not defined ' );
136136 }
137137
138- public function setSubTypeComment (string $ comment = null ): TypeInterface
138+ public function setSubTypeComment (? string $ comment = null ): TypeInterface
139139 {
140140 $ this ->subTypeComment = $ comment ;
141141 return $ this ;
@@ -167,7 +167,7 @@ public function getParameter(string $name): TypeParameter
167167 throw new UndefinedException ("Parameter $ name is not defined " );
168168 }
169169
170- public function addParameter (string $ name , string $ value , string $ comment = null ): void
170+ public function addParameter (string $ name , string $ value , ? string $ comment = null ): void
171171 {
172172 $ this ->parameters [$ name ] = new TypeParameter ($ name , $ value , $ comment );
173173 }
0 commit comments