Skip to content

Null Coalescing Assignment Operator in PHP 7.4 #1806

@chrisblakley

Description

@chrisblakley

Currently how this is handled (PHP 7+):

$data['date'] = $data['date'] ?? new DateTime();

In PHP 7.4:

$data['date'] ??= new DateTime();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backend (Server)Related to the server-side (includes PHP, HTML, etc).

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions