Skip to content

Parse Error with Immediately Invoked Function Expression (IIFE) #16

@senadir

Description

@senadir

I have the following function that fails parsing because of the () call at the end:

$container = $container ?: ( function() {
	// logic here
} )();

IIFE are supported as of PHP 7.0 and up.

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