@@ -76,7 +76,7 @@ public function handle(): int
7676 '--out ' => $ dumpOut , // e.g. unesco/world-heritage-sites.json
7777 '--pretty ' => $ pretty ? true : null ,
7878 '--dry-run ' => (bool ) $ this ->option ('dump-dry-run ' ) ? true : null ,
79- ], fn ($ v ) => $ v !== null ));
79+ ], static fn ($ v ) => $ v !== null ));
8080 }
8181
8282 // 1) Split raw UNESCO JSON -> normalized JSON files
@@ -88,7 +88,7 @@ public function handle(): int
8888 '--exceptions-out ' => self ::NORM_DIR . '/exceptions-missing-iso-codes.json ' ,
8989 '--clean ' => true ,
9090 '--pretty ' => $ pretty ? true : null ,
91- ], fn ($ v ) => $ v !== null ));
91+ ], static fn ($ v ) => $ v !== null ));
9292
9393 // 2) Import countries (FK parent)
9494 $ this ->callOrFail ('world-heritage:import-countries-split ' , [
@@ -137,14 +137,14 @@ public function handle(): int
137137
138138 '--missing-out ' => trim ((string ) $ this ->option ('jp-missing-out ' )) !== '' ? (string ) $ this ->option ('jp-missing-out ' ) : null ,
139139 '--missing-limit ' => (int ) $ this ->option ('jp-missing-limit ' ),
140- ], fn ($ v ) => $ v !== null ));
140+ ], static fn ($ v ) => $ v !== null ));
141141 }
142142
143143 // 8) Algolia import (optional)
144144 if ((bool ) $ this ->option ('algolia ' )) {
145145 $ this ->callOrFail ('algolia:import-world-heritages ' , array_filter ([
146146 '--truncate ' => (bool ) $ this ->option ('algolia-truncate ' ) ? true : null ,
147- ], fn ($ v ) => $ v !== null ));
147+ ], static fn ($ v ) => $ v !== null ));
148148 }
149149
150150 $ this ->info ('Done: DB rebuilt + UNESCO data imported (dump -> split -> import) ' );
0 commit comments