Skip to content

Iterable processors with not exists field #28

@kamarton

Description

@kamarton

What steps will reproduce the problem?

If the field does not exist then an undefined index is generated, I assume this is incorrect.

What is the expected result?

  • In most cases: $item[$field] ?? null
    • =, <, <=, >, >=, in
  • With like I don't know what to do correct properly.
    • always fails?
$ php -r 'var_dump(stripos(null, ""));'
bool(false)
$ php -r 'var_dump(stripos(null, null));'
bool(false)
  • or null LIKE null is true

What do you get instead?

Undefined index: notExistsField

Q A
Version 1.0.0-under development
PHP version -
Operating system -

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions