lesstif / php-jira-rest-client

PHP classes interact Jira with the REST API.
Other
510 stars 263 forks source link

JSON serialization return type warning under PHP 8.1 #484

Closed joachim-n closed 1 year ago

joachim-n commented 2 years ago

Getting this warning on PHP 8.1:

Return type of JiraRestApi\Project\Project::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/vendor/lesstif/php-jira-rest-client/src/Project/Project.php on line 118PHP message: PHP Deprecated: Return type of JiraRestApi\Issue\IssueType::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

lesstif commented 1 year ago

Hi @joachim-n

Could you give me more detailed info, please? For example, could you show me the example code?

lesstif commented 1 year ago

This issue has not been updated for a long time.