caravelx/module-graphql-config

ParseError: syntax error, unexpected ScopeConfigInterface

deedy-tech opened this issue · 1 comments

Hi
I installed this module on my Magento 2.4.3-p2 (PHP 7.3.33).

When I make a Graphql Request to the server, I get the following error in the Magento var/log/system.log

[2022-05-13 13:42:00] main.CRITICAL: ParseError: syntax error, unexpected 'ScopeConfigInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/magento/vendor/caravelx/module-graphql-config/Config/GraphQlConfig.php:15
Stack trace:
#0 /var/www/html/magento/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/html/m...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Caravel\GraphQl...')
#2 /var/www/html/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): spl_autoload_call('Caravel\GraphQ.....

Cheers
Rob

Hi
Fixed this now, realised I needed to be running PHP7.4

Cheers
Rob