Skip to content

[5.x] empty fails when array of Values is accessed via __get #12864

@edalzell

Description

@edalzell

Bug description

Related to #11402, this also fails on Values.

How to reproduce

$field = new Values(['a' => 'alfa']);

empty($field); // true

Installation

Fresh statamic/statamic site via CLI

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