Flagsmith / Flagsmith/flagsmith-php-client
Resolve `jsonSerialize` deprecation warnings
- Lenguaje dominante
- PHP
- Estrellas
- 18
- Forks
- 13
- Merge medio
- 28 min
- PR fusionados (30 d)
- 1
Descripción
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
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza revisando PR 34 y las implementaciones de jsonSerialize() en MultivariateFeatureStateValueModelList, CollectionTrait y FlagModelsList. Confirma qué enfoque del tipo de retorno es temporal actualmente y, a continuación, ejecuta las comprobaciones relevantes del proyecto para verificar que la advertencia de deprecación ya no se emite sin romper las versiones de PHP compatibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- php
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100