-
During inheritance of JsonSerializable: Uncaught think\exception\ErrorException: Return type of FormBuilder\Driver\CustomComponent::jsonSerialize() should either be compatible with JsonSerializable::j…
-
### Description
The following code:
```php
-
What i did:
```php
$data = [
'quantity' => Quantity::from(5)
];
debug(json_encode($data));
```
Expected result:
```json
{
"quantity": 5
}
```
Actual result:
```json
{
"quanti…
-
Like JsonSerializable, we can define many converters using the argument `converters`.
```dart
@JsonSerializable(converters: [DateTimeConverter(), IntConverter()])
```
But Freezed does not have the…
-
```
What steps will reproduce the problem?
public class SimpleBean implements JsonSerializable{
private String name;
private SimpleBean intern;
public SimpleBean(){}
public St…
-
**Describe the bug**
When implementing `JsonSerializable::jsonSerialize()` without return type or using any other return type other than `mixed` using PHP `v7.2.24`, an error is issued, but in `7.2` …
-
```
What steps will reproduce the problem?
public class SimpleBean implements JsonSerializable{
private String name;
private SimpleBean intern;
public SimpleBean(){}
public St…
-
```
What steps will reproduce the problem?
public class SimpleBean implements JsonSerializable{
private String name;
private SimpleBean intern;
public SimpleBean(){}
public St…
-
This doesn't work:
```dart
import 'package:freezed_annotation/freezed_annotation.dart';
part 'data.freezed.dart';
part 'data.g.dart';
@freezed
@JsonSerializable(genericArgumentFactories: true,…
-
Compatiblity with PHP 8.1
`During inheritance of JsonSerializable: Uncaught yii\\base\\ErrorException: Return type of Lcobucci\\JWT\\Claim\\Basic::jsonSerialize() should either be compatible with J…