Flagsmith / Flagsmith/flagsmith-php-client
Resolve `jsonSerialize` deprecation warnings
- Langage dominant
- PHP
- Étoiles
- 18
- Forks
- 13
- Merge moyen
- 28 min
- PR mergées (30 j)
- 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
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par examiner PR 34 et les implémentations de jsonSerialize() dans MultivariateFeatureStateValueModelList, CollectionTrait et FlagModelsList. Confirmez quelle approche du type de retour est actuellement temporaire, puis exécutez les vérifications pertinentes du projet afin de vérifier que l’avertissement de dépréciation n’est plus émis sans casser les versions de PHP prises en charge.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- php
- Domaine
- backend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100