Flagsmith / Flagsmith/flagsmith-php-client

Resolve `jsonSerialize` deprecation warnings

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
18
Forks
13
Avg merge
28m
Merged PRs (30d)
1

Description

The following warning was presented for the `jsonSerialize()` methods on the `MultivariateFeatureStateValueModelList` and `CollectionTrait` and classes. We have temporarily resolved this in [this PR](https://github.com/Flagsmith/flagsmith-php-client/pull/34) by indicating that the return type will change in the next major version.

```
Deprecated: Return type of Flagsmith\Utils\Collections\FlagModelsList::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.