@@ -119,7 +119,7 @@ public function getContinent()
119119 return $ this ->continent ;
120120 }
121121
122- public function withContinent (string $ continent = null ): self
122+ public function withContinent (? string $ continent = null ): self
123123 {
124124 $ new = clone $ this ;
125125 $ new ->continent = $ continent ;
@@ -135,7 +135,7 @@ public function getCapital()
135135 return $ this ->capital ;
136136 }
137137
138- public function withCapital (string $ capital = null ): self
138+ public function withCapital (? string $ capital = null ): self
139139 {
140140 $ new = clone $ this ;
141141 $ new ->capital = $ capital ;
@@ -167,7 +167,7 @@ public function getGeonameId()
167167 return $ this ->geonameId ;
168168 }
169169
170- public function withGeonameId (int $ geonameId = null ): self
170+ public function withGeonameId (? int $ geonameId = null ): self
171171 {
172172 $ new = clone $ this ;
173173 $ new ->geonameId = null === $ geonameId ? null : (int ) $ geonameId ;
@@ -183,7 +183,7 @@ public function getIsoAlpha3()
183183 return $ this ->isoAlpha3 ;
184184 }
185185
186- public function withIsoAlpha3 (string $ isoAlpha3 = null ): self
186+ public function withIsoAlpha3 (? string $ isoAlpha3 = null ): self
187187 {
188188 $ new = clone $ this ;
189189 $ new ->isoAlpha3 = $ isoAlpha3 ;
@@ -199,7 +199,7 @@ public function getFipsCode()
199199 return $ this ->fipsCode ;
200200 }
201201
202- public function withFipsCode (string $ fipsCode = null ): self
202+ public function withFipsCode (? string $ fipsCode = null ): self
203203 {
204204 $ new = clone $ this ;
205205 $ new ->fipsCode = $ fipsCode ;
@@ -234,7 +234,7 @@ public function getIsoNumeric()
234234 return $ this ->isoNumeric ;
235235 }
236236
237- public function withIsoNumeric (string $ isoNumeric = null ): self
237+ public function withIsoNumeric (? string $ isoNumeric = null ): self
238238 {
239239 $ new = clone $ this ;
240240 $ new ->isoNumeric = null === $ isoNumeric ? null : (int ) $ isoNumeric ;
@@ -250,7 +250,7 @@ public function getAreaInSqKm()
250250 return $ this ->areaInSqKm ;
251251 }
252252
253- public function withAreaInSqKm (string $ areaInSqKm = null ): self
253+ public function withAreaInSqKm (? string $ areaInSqKm = null ): self
254254 {
255255 $ new = clone $ this ;
256256 $ new ->areaInSqKm = null === $ areaInSqKm ? null : (float ) $ areaInSqKm ;
@@ -266,7 +266,7 @@ public function getCountryCode()
266266 return $ this ->countryCode ;
267267 }
268268
269- public function withCountryCode (string $ countryCode = null ): self
269+ public function withCountryCode (? string $ countryCode = null ): self
270270 {
271271 $ new = clone $ this ;
272272 $ new ->countryCode = $ countryCode ;
@@ -282,7 +282,7 @@ public function getCountryName()
282282 return $ this ->countryName ;
283283 }
284284
285- public function withCountryName (string $ countryName = null ): self
285+ public function withCountryName (? string $ countryName = null ): self
286286 {
287287 $ new = clone $ this ;
288288 $ new ->countryName = $ countryName ;
@@ -298,7 +298,7 @@ public function getContinentName()
298298 return $ this ->continentName ;
299299 }
300300
301- public function withContinentName (string $ continentName = null ): self
301+ public function withContinentName (? string $ continentName = null ): self
302302 {
303303 $ new = clone $ this ;
304304 $ new ->continentName = $ continentName ;
@@ -314,7 +314,7 @@ public function getCurrencyCode()
314314 return $ this ->currencyCode ;
315315 }
316316
317- public function withCurrencyCode (string $ currencyCode = null ): self
317+ public function withCurrencyCode (? string $ currencyCode = null ): self
318318 {
319319 $ new = clone $ this ;
320320 $ new ->currencyCode = $ currencyCode ;
0 commit comments