Skip to content

Throw and null coalesce combination #16

Description

@peldax
$this->brokerModel->updateFromInput($seller->getBroker(), $input->broker
    ?? throw new \App\Exception\SellerTypeChange());

is replaced with

$this->brokerModel->updateFromInput($seller->getBroker(), $input->broker
    ??
throw new \App\Exception\SellerTypeChange());

Metadata

Metadata

Assignees

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