butschster / LaravelMetaTags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project
MIT License
540 stars 50 forks source link

Laravel 10 : Installing/updating any version from 3.0.1 throws a fatal error #65

Closed bernig closed 5 months ago

bernig commented 5 months ago

When installing/updating the package in a Laravel 10 project, a fatal error occurs:

PHP Fatal error: A void function must not return a value in /var/www/laravel10/vendor/butschster/meta-tags/src/Console/InstallCommand.php on line 38

To Reproduce

  1. Install the latest Laravel 10 version
  2. composer require butschster/meta-tags
  3. Error

This commit is the cause of the issue: https://github.com/butschster/LaravelMetaTags/commit/43086d3868fcee98deccdb738125322c695f0a65

Note: Forcing the version to 3.0.0 fixes the issue.

butschster commented 5 months ago

Fixed! Thx for a bug report!