# UpdateCommand::execute()" must be of the type int, "null" returned

**URL:** <https://forum.shopware.com/t/updatecommand-execute-must-be-of-the-type-int-null-returned/88289>\
**Category:** Shopware 6 (German)\
**Created:** [11. Juni 2021 um 11:36 UTC](https://forum.shopware.com/t/updatecommand-execute-must-be-of-the-type-int-null-returned/88289 "2021-06-11T11:36:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dateifabrik](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@dateifabrik](https://forum.shopware.com/u/dateifabrik)\
**Post date:** [11. Juni 2021 um 11:36 UTC](https://forum.shopware.com/t/updatecommand-execute-must-be-of-the-type-int-null-returned/88289/1 "2021-06-11T11:36:58Z")

</div>

Hallo,

beim Update von 6.3.54 auf 6.4.0.0 erhalte ich trotz offenbar erfolgreichem Update

```auto
The update has been finished successfully.
Your shop is currently in maintenance mode.
Please delete ......./update-assets to finish the update.

```

diesen PHP-Fehler:

```auto
PHP Fatal error: Uncaught TypeError: Return value of "Shopware\Recovery\Update\Command\UpdateCommand::execute()" must be of the type int, "null" returned. in ......./vendor/shopware/recovery/Common/vendor/symfony/console/Command/Command.php:259
Stack trace:
#0 ......./vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(971): Symfony\Component\Console\Command\Command->run()
#1 ......./vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand()
#2 ......./vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun()
#3 ......./vendor/shopware/recovery/Update/index.php(36): Symfony\Component\Console\Application->run()
#4 ......./public/recovery/update/index.php(6): require_ in ......./vendor/shopware/recovery/Common/vendor/symfony/console/Command/Command.php on line 259

Fatal error: Uncaught TypeError: Return value of "Shopware\Recovery\Update\Command\UpdateCommand::execute()" must be of the type int, "null" returned. in ......./vendor/shopware/recovery/Common/vendor/symfony/console/Command/Command.php:259
Stack trace:
#0 ......./vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(971): Symfony\Component\Console\Command\Command->run()
#1 ......./vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand()
#2 ......./vendor/shopware/recovery/Common/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun()
#3 ......./vendor/shopware/recovery/Update/index.php(36): Symfony\Component\Console\Application->run()
#4 ......./public/recovery/update/index.php(6): require_ in ......./vendor/shopware/recovery/Common/vendor/symfony/console/Command/Command.php on line 259

```

Der Shop entspricht dem Standard und ist noch nicht mit Produkten o.ä. befüllt worden und funktioniert, soweit ich das sehen kann.  
Vermutlich handelt es sich um ein zu vernachlässigendes Problem, aber ich hätte schon gern gewußt, wie sich der Fehler beheben läßt. Mit ist klar, daß es sich um eine falsche bzw. nicht vorhandene Deklaration einer Variable handeln müsste, aber wo?

```auto
php -v
PHP 7.4.18 (cli) (built: Apr 30 2021 18:12:03) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.

```

Danke für eure Ideen!  
Gruß  
Peter

---

<div class="post-metadata">

**Author:** ![Men-At-Work](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/men-at-work/32/14255_2.png) [@Men-At-Work](https://forum.shopware.com/u/Men-At-Work)\
**Post date:** [21. Juli 2021 um 16:01 UTC](https://forum.shopware.com/t/updatecommand-execute-must-be-of-the-type-int-null-returned/88289/2 "2021-07-21T16:01:47Z")

</div>

in 6.4.1.2 immernoch…
