olegkoval / magento2-regenerate_url_rewrites

Magento 2 extension which add feature of regenerating a url rewrites of products/categories
Academic Free License v3.0
420 stars 117 forks source link

Execute method must be of type int in Magento 2.4.6 #167

Closed Nurgiel closed 10 months ago

Nurgiel commented 1 year ago

Magento 2.4.6, PHP 8.2 After end process of bin/magento ok:urlrewrites:regenerate

There is an error in /.../vendor/symfony/console/Command/Command.php at line: 301 Return value of "OlegKoval\RegenerateUrlRewrites\Console\Command\RegenerateUrlRewrites::execute()" must be of the type int, "null" returned.#0

https://github.com/olegkoval/magento2-regenerate_url_rewrites/issues/165

as per: vendor/symfony/console/Command/Command.php protected function execute @return int 0 if everything went fine, or an exit code

so to fix this error we just need to add return 0; at the end of execute() function in vendor/olegkoval/magento2-regenerate-url-rewrites/Console/Command/RegenerateUrlRewrites.php

Nurgiel commented 9 months ago

Can I have the contributor badge now? :grin: