Skip to content

fix : PHP8 json_decode() problem #11

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LittleXiaYuan
Copy link

Today, when I was running the test plugin, I unexpectedly encountered an error. The operating environment was PHP8.2, and then I checked the code
ConversationSerializer.php line 21,
The json_decode() function passed null, which will cause an error in the PHP8 version because the first parameter of json_decode() is required to be a string type, and passing null does not meet the requirements.

@neoncube2
Copy link
Owner

@LittleXiaYuan I haven't had a chance to take a look at this yet, but I wanted to say thank you for the PR! :) Reviewing it is on my list! :)

@LittleXiaYuan
Copy link
Author

Thank you for your hard work. I am very happy to contribute PR to your project.

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

Successfully merging this pull request may close these issues.

2 participants