@@ -62,7 +62,7 @@ public function getName()
6262 return $ this ->name ;
6363 }
6464
65- public function withName (string $ name = null ): self
65+ public function withName (? string $ name = null ): self
6666 {
6767 $ new = clone $ this ;
6868 $ new ->name = $ name ;
@@ -78,7 +78,7 @@ public function getOSMId()
7878 return $ this ->osmId ;
7979 }
8080
81- public function withOSMId (int $ osmId = null ): self
81+ public function withOSMId (? int $ osmId = null ): self
8282 {
8383 $ new = clone $ this ;
8484 $ new ->osmId = $ osmId ;
@@ -94,7 +94,7 @@ public function getOSMType()
9494 return $ this ->osmType ;
9595 }
9696
97- public function withOSMType (string $ osmType = null ): self
97+ public function withOSMType (? string $ osmType = null ): self
9898 {
9999 $ new = clone $ this ;
100100 $ new ->osmType = $ osmType ;
@@ -110,7 +110,7 @@ public function getOSMTag()
110110 return $ this ->osmTag ;
111111 }
112112
113- public function withOSMTag (string $ key = null , string $ value = null ): self
113+ public function withOSMTag (? string $ key = null , ? string $ value = null ): self
114114 {
115115 $ new = clone $ this ;
116116
@@ -134,7 +134,7 @@ public function getState()
134134 return $ this ->state ;
135135 }
136136
137- public function withState (string $ state = null ): self
137+ public function withState (? string $ state = null ): self
138138 {
139139 $ new = clone $ this ;
140140 $ new ->state = $ state ;
@@ -150,7 +150,7 @@ public function getCounty()
150150 return $ this ->county ;
151151 }
152152
153- public function withCounty (string $ county = null ): self
153+ public function withCounty (? string $ county = null ): self
154154 {
155155 $ new = clone $ this ;
156156 $ new ->county = $ county ;
@@ -166,7 +166,7 @@ public function getDistrict()
166166 return $ this ->district ;
167167 }
168168
169- public function withDistrict (string $ district = null ): self
169+ public function withDistrict (? string $ district = null ): self
170170 {
171171 $ new = clone $ this ;
172172 $ new ->district = $ district ;
0 commit comments