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

getting PHP Deprecated error while running m4b-tool version #206

Open
dmuiX opened this issue Nov 10, 2022 · 2 comments
Open

getting PHP Deprecated error while running m4b-tool version #206

dmuiX opened this issue Nov 10, 2022 · 2 comments

Comments

@dmuiX
Copy link

dmuiX commented Nov 10, 2022

PHP Deprecated:  Return type of Sandreas\Time\TimeUnit::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/m4b-tool/vendor/sandreas/php-time/src/Sandreas/Time/TimeUnit.php on line 241

Deprecated: Return type of Sandreas\Time\TimeUnit::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/m4b-tool/vendor/sandreas/php-time/src/Sandreas/Time/TimeUnit.php on line 241
m4b-tool latest-178-gaeb8b2b

MacBook 14 M1 MacOS Ventura 13.0 (22A380)

installed php with brew install php

Okay just realized its working correctly and just showing this deprecated stuff. migth not be so important for you

@dmuiX
Copy link
Author

dmuiX commented Nov 10, 2022

Okay I just realized I have commented this already here :D.

But it needs an update:

Best is now

brew install [email protected]
brew link [email protected]

and most important

echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc

@sandreas
Copy link
Owner

Ok, maybe I should update everything to be just PHP 8.0 compatible...
The end of life date for PHP 7.4 is November 28, 2022.10.08.2022

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