I was trying to update a product, but Magento gave me this warning and I can't update a product: "
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/magentof/public_html/vendor/zendframework/zend-code/src/Reflection/MethodReflection.php on line 274
".
The version of Magento I'm using is 2.2.
Here is a screenshot of my admin panel when I try to update a product.
Solved! Go to Solution.
composer self-update
composer self-update
I tried `composer self-update`, and running `composer install` again threw new errors and broke the app... which apparently means that the latest version of composer isn't compatible with the app, or we need a serious composer.json package review. If the former, that means our app is only compatible with a certain version range of composer... which is a terrifying thought, but not unheard of when software compatibility ranges exist.