alleyinteractive / alleyinteractive/photonfill

Missing validation on $data args

Open
#86 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
15
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Occasionally we'll get illegal offset errors because `$data` isn't set in [this function](https://github.com/alleyinteractive/photonfill/blob/master/php/class-photonfill-transform.php#L102), specifically, [these lines](https://github.com/alleyinteractive/photonfill/blob/master/php/class-photonfill-transform.php#L109-L112).

This occurs when `$data` is a string instead of an array.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.