Skip to content

PHP 8.4 : Deprecated implicit nullable #61

@marcimat

Description

@marcimat

Hello,

PHP 8.4 shows at least one deprecated :

Deprecated: Zumba\JsonSerializer\JsonSerializer::__construct(): Implicitly marking parameter $closureSerializer as nullable is deprecated, the explicit nullable type must be used instead in ~/src/JsonSerializer/JsonSerializer.php on line 78

This is a small correction

    public function __construct(
-       ClosureSerializerInterface $closureSerializer = null,
+      ?ClosureSerializerInterface $closureSerializer = null,
        $customObjectSerializerMap = []
    ) {

But it seems to be a problem as this syntax comes with PHP 7.1 https://www.php.net/manual/en/migration71.new-features.php
and this lib accepts PHP >= 7.0 at this time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions