-
Notifications
You must be signed in to change notification settings - Fork 14
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
PHP 8.1 Compatibility #42
Comments
SMillerDev
added a commit
to SMillerDev/garden-cli
that referenced
this issue
Jun 6, 2022
Hi, when will this fix be released officially? |
There is a small issue in the REAMD.md in this pull request: The documentation says the following about the
The
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running garden-cli with PHP 8.1.5 gives me:
I can not push to new branch or create pull request. So... If okay, please help me doing these:
src\Schema\OptSchema.php
Line 231: Add return type: mixed
public function jsonSerialize() : mixed {
src\Args.php
Line 219: Add return type: mixed
public function jsonSerialize() : mixed {
Line 236: Add return type: bool
public function offsetExists($offset) : bool {
Line 247: Add return type: mixed
public function offsetGet($offset) : mixed {
Line 259: Add return type: void
public function offsetSet($offset, $value) : void {
Line 270: Add return type: void
public function offsetUnset($offset) : void {
Doing this will break compatibility with PHP below Version 7. But since the requirement for garden-cli is PHP 7 or above, then i think it's safe to do above changes.
The text was updated successfully, but these errors were encountered: