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

PHP7 Fatal error: 'break' not in the 'loop' or 'switch' context #46

Open
kblropb opened this issue Mar 10, 2018 · 1 comment
Open

PHP7 Fatal error: 'break' not in the 'loop' or 'switch' context #46

kblropb opened this issue Mar 10, 2018 · 1 comment

Comments

@kblropb
Copy link

kblropb commented Mar 10, 2018

MIGX 2.12.0-pl
Modx 2.6.1-pl
PHP7 Fatal error: 'break' not in the 'loop' or 'switch' context in migx/model/imageupload/imageupload.php on line 197

Remove break after return, please :)

@fernandoarag
Copy link

PHP 5.x.x, a break statement outside a for, foreach, while or switch statement DID NOT throw an error message and was syntactically okay.

PHP 7.0 and higher, a break statement is no longer permitted outside a for, foreach, while or switch statement and gives a fatal error.

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

No branches or pull requests

2 participants