Skip to content

PHP: usage of null coalescing operator breaks PHP 5.6 support #44

@kmmathis

Description

@kmmathis

Beginning on line 274:
'LV2_ITEM_TAX_RATE' => $params['taxRate'] ?? ''

Usage of the double question mark (null coalescing operator) is only supported on PHP 7 and higher, so any sites running 5.6 will not be able to use this code. If that is the intended behavior, then I can just update my version to not use the operator, but thought I'd bring this up in case anyone asks in the future. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions