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

zendframework/zend-code is deprecated #14

Open
soulseekah opened this issue Oct 13, 2021 · 0 comments
Open

zendframework/zend-code is deprecated #14

soulseekah opened this issue Oct 13, 2021 · 0 comments

Comments

@soulseekah
Copy link

Switch to https://github.com/laminas/laminas-code

Problems arise with code generation with PHP 7.4:

--php_out: protoc-gen-php: Plugin output is unparseable: \nWarning: \"continue\" targeting switch is equivalent to \"break\". Did you mean to use \"continue 2\"? in /Users/soulseekah/Development/wp-ipfs/php-libp2p/vendor/zendframework/zend-code/src/Generator/FileGenerator.php on line 135\n\nWarning: \"continue\" targeting switch is equivalent to \"break\". Did you mean to use \"continue 2\"? in /Users/soulseekah/Development/wp-ipfs/php-libp2p/vendor/zendframework/zend-code/src/Generator/FileGenerator.php on line 138\n\nWarning: \"continue\" targeting switch is equivalent to \"break\".

This was fixed in laminas. https://github.com/laminas/laminas-code/blob/4.5.x/src/Generator/FileGenerator.php#L84

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

1 participant