Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Syntax error? #1

Description

@rossaddison

Hi, Perhaps this is a stupid question needing a curt reply, but I am getting a syntax error ... from the colon.... before the MessageInstance from Netbeans:

public function sms(string $to, string $text, array $options = []) : MessageInstance

I must be missing something really obvious here? Can you provide me please with some advanced knowledge on how to read this syntax.

Also there are two question marks after the ['from']. Educate me please!

{

# ### $from = $options['from']?? null;

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