Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type error #116

Closed
wants to merge 1 commit into from
Closed

Fix type error #116

wants to merge 1 commit into from

Conversation

fritzmg
Copy link
Contributor

@fritzmg fritzmg commented Dec 2, 2022

This fixes the following error that happens when you install this package:

[RuntimeException]

  In LibrariesConfiguration.php line 52:

    [TypeError]
    ArrayIterator::__construct(): Argument #1 ($array) must be of type array, null given


  Exception trace:
    at vendor\netzmacht\contao-leaflet-maps\src\Frontend\Assets\LibrariesConfiguration.php:52
   ArrayIterator->__construct() at vendor\netzmacht\contao-leaflet-maps\src\Frontend\Assets\LibrariesConfiguration.php:52        
   Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration->getIterator() at vendor\netzmacht\contao-leaflet-maps\src\   
  Listener\RegisterLibrariesListener.php:61
   Netzmacht\Contao\Leaflet\Listener\RegisterLibrariesListener->onInitializeSystem() at vendor\contao\contao\core-bundle\src\F   
  ramework\ContaoFramework.php:405
   Contao\CoreBundle\Framework\ContaoFramework->triggerInitializeSystemHook() at vendor\contao\contao\core-bundle\src\Framewor   
  k\ContaoFramework.php:307
   Contao\CoreBundle\Framework\ContaoFramework->initializeFramework() at vendor\contao\contao\core-bundle\src\Framework\Contao   
  Framework.php:122
   Contao\CoreBundle\Framework\ContaoFramework->initialize() at vendor\contao\contao\core-bundle\src\Cache\ContaoCacheWarmer.p   
  hp:62
   Contao\CoreBundle\Cache\ContaoCacheWarmer->warmUp() at vendor\symfony\http-kernel\CacheWarmer\CacheWarmerAggregate.php:99     
   Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at vendor\symfony\framework-bundle\Command\CacheWar   
  mupCommand.php:77
   Symfony\Bundle\FrameworkBundle\Command\CacheWarmupCommand->execute() at vendor\symfony\console\Command\Command.php:298        
   Symfony\Component\Console\Command\Command->run() at vendor\symfony\console\Application.php:1058
   Symfony\Component\Console\Application->doRunCommand() at vendor\symfony\framework-bundle\Console\Application.php:96
   Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at vendor\symfony\console\Application.php:301
   Symfony\Component\Console\Application->doRun() at vendor\symfony\framework-bundle\Console\Application.php:82
   Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at vendor\symfony\console\Application.php:171
   Symfony\Component\Console\Application->run() at vendor\contao\contao\manager-bundle\bin\contao-console:38

  cache:warmup [--no-optional-warmers]

@dmolineus
Copy link
Member

Should be irrelevant by a2d1ae6.

@dmolineus dmolineus closed this Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants