Skip to content

Accessing a field that can be null #920

@mvorisek

Description

@mvorisek

if (!$this->field->required && !$this->isMultiple) {

If the field is not set PHP currently shows a notice warning.

If field can be set without a model, then extra null check should be added, otherwise it should be moved to the condition right below which checks if model is set.

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