Error after installation, shopware doesn't run

Hi folks!

Downloaded shopware from github, followed the installation instructions.

I first run the shop I get redirected to myhost.local/recovery/install and finish the process.

When I try to access shop’s frontend/backend all I got is:

" Fatal error : Declaration of Shopware\Models\Menu\Repository::findOneBy(array $criteria) must be compatible with Doctrine\ORM\EntityRepository::findOneBy(array $criteria, ?array $orderBy = NULL) in /Users/truads/www/shopware/engine/Shopware/Models/Menu/Repository.php on line 60"

I tried installing 3 ways (from github, the installer, using composer) and for all oh them it fails to run.

I would appreciate any help.

Thanks!

 

What PHP version and webserver are you using?

Also, what branch of Shopware are you on? There is no line 60 in that file in the current 5.4-branch: shopware/Repository.php at 5.4 · shopware/shopware · GitHub

I am using version 5.1.6 and php 7.2