diff --git a/lizmap/modules/lizmap/lib/Commands/ProjectLoad.php b/lizmap/modules/lizmap/lib/Commands/ProjectLoad.php index b4323b4289..b22d3de51f 100644 --- a/lizmap/modules/lizmap/lib/Commands/ProjectLoad.php +++ b/lizmap/modules/lizmap/lib/Commands/ProjectLoad.php @@ -34,7 +34,7 @@ protected function execute(InputInterface $input, OutputInterface $output) return 1; } $checker = new \Lizmap\CliHelpers\RepositoryWMSChecker(); - $checker->checkAllRepository($nb, function ($str) use ($output) {$output->writeln($str); }); + $checker->checkAllRepository($nb, function ($str) use ($output): void {$output->writeln($str); }); return 0; } diff --git a/lizmap/modules/lizmap/lib/Commands/WMTSCacheClean.php b/lizmap/modules/lizmap/lib/Commands/WMTSCacheClean.php index 136d0a446d..5b95366a02 100644 --- a/lizmap/modules/lizmap/lib/Commands/WMTSCacheClean.php +++ b/lizmap/modules/lizmap/lib/Commands/WMTSCacheClean.php @@ -27,7 +27,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $fakeServer = new \Jelix\FakeServerConf\ApacheMod(\jApp::wwwPath(), '/index.php'); $fakeServer->setHttpRequest($req->getServerURI()); - $WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output) {$output->writeln($str); }); + $WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output): void {$output->writeln($str); }); $WMTSCache->clean( $input->getArgument('repository'), $input->getArgument('project'), diff --git a/lizmap/modules/lizmap/lib/Commands/WMTSCapabilities.php b/lizmap/modules/lizmap/lib/Commands/WMTSCapabilities.php index c078eaca5f..a86dc77cad 100644 --- a/lizmap/modules/lizmap/lib/Commands/WMTSCapabilities.php +++ b/lizmap/modules/lizmap/lib/Commands/WMTSCapabilities.php @@ -29,7 +29,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $fakeServer = new \Jelix\FakeServerConf\ApacheMod(\jApp::wwwPath(), '/index.php'); $fakeServer->setHttpRequest($req->getServerURI()); - $WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output) {$output->writeln($str); }); + $WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output): void {$output->writeln($str); }); return $WMTSCache->capabilities( $input->getArgument('repository'), diff --git a/lizmap/modules/lizmap/lib/Commands/WMTSSeed.php b/lizmap/modules/lizmap/lib/Commands/WMTSSeed.php index dcc29ca888..8609985c3b 100644 --- a/lizmap/modules/lizmap/lib/Commands/WMTSSeed.php +++ b/lizmap/modules/lizmap/lib/Commands/WMTSSeed.php @@ -46,7 +46,7 @@ protected function execute(InputInterface $input, OutputInterface $output) return 1; } - $WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output) {$output->writeln($str); }); + $WMTSCache = new \Lizmap\CliHelpers\WMTSCache(function ($str) use ($output): void {$output->writeln($str); }); return $WMTSCache->seed( $input->getArgument('repository'), diff --git a/tests/units/testslib/ContextForTests.php b/tests/units/testslib/ContextForTests.php index c072c1b395..3fe3e6d158 100644 --- a/tests/units/testslib/ContextForTests.php +++ b/tests/units/testslib/ContextForTests.php @@ -214,7 +214,7 @@ public function getUrl($selector, $params = array()) { // simple url build $keyWithVal4QueryString = array(); - array_walk($params, function($v ,$key) use (&$keyWithVal4QueryString) {$keyWithVal4QueryString[]=$key.'='.$v;}); + array_walk($params, function($v ,$key) use (&$keyWithVal4QueryString): void {$keyWithVal4QueryString[]=$key.'='.$v;}); return $selector.'?'.implode("&", $keyWithVal4QueryString); }