Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error in GuidesAbstractBaseBlock.php #149

Open
adinan-cenci opened this issue Apr 12, 2024 · 0 comments
Open

Type error in GuidesAbstractBaseBlock.php #149

adinan-cenci opened this issue Apr 12, 2024 · 0 comments

Comments

@adinan-cenci
Copy link

adinan-cenci commented Apr 12, 2024

Passing NULL to array_filter when an array is expected.

Version: 2.1.3 - 2.1.6
Maybe earlier versions as well, have not tested.

TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (
line 137 of modules/contrib/localgov_guides/src/Plugin/Block/GuidesAbstractBaseBlock.php).

A simple cast-down can solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant