Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pixelhed opened this issue May 31, 2023 · 2 comments · May be fixed by #645
Open

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

pixelhed opened this issue May 31, 2023 · 2 comments · May be fixed by #645

Comments

@pixelhed
Copy link

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 pixelhed linked a pull request May 31, 2023 that will close this issue
@joachimVT
Copy link

joachimVT commented Jul 12, 2023

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) {}

@antoniocarboni
Copy link

I have same issue. Fixed temporarily with this:
#645
thanks @pixelhed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants