magento2-connector-community icon indicating copy to clipboard operation
magento2-connector-community copied to clipboard

Parse error in module-magento2-connector-community/Job/Attribute.php on line 566

Open pixelhed opened this issue 1 year ago • 2 comments

When executiing bin/magento akeneo_connector:import --code={anycode_here} there is an error

Parse error: syntax error, unexpected ')', expecting '|' or variable (T_VARIABLE) in /path/to/magento/vendor/akeneo/module-magento2-connector-community/Job/Attribute.php on line 566

Environment and configuration

PHP version: 7.4 Magento version: 2.3.7-p2 module version: 103.4.3

Steps to reproduce

  1. run command bin/magento akeneo_connector:import --code={anycode_here}

Expected result

Import runs correctly

Actual result

parse error occurs

pixelhed avatar May 31 '23 13:05 pixelhed

Having the same issue when trying to run bin/magento setup:di:compile. PHP versions prior to 8.0 will raise a fatal error with the new syntax: } catch (Exception) {}

joachimVT avatar Jul 12 '23 18:07 joachimVT

I have same issue. Fixed temporarily with this: https://github.com/akeneo/magento2-connector-community/pull/645 thanks @pixelhed :)

antoniocarboni avatar Jul 25 '23 00:07 antoniocarboni