Skip to content

Conversation

@Dwarfex
Copy link
Contributor

@Dwarfex Dwarfex commented Apr 14, 2021

The parent class Json Model extends the Laminas View Model that implements the getVariables function with following type: array|ArrayAccess|Traversable

As $this->variables may be an implementation of ArrayAccess, calling array_key_exists() on $this->variables throws an error (with PHP 8.0)

see also:
https://www.php.net/manual/de/class.arrayaccess.php#104061

Q A
Documentation yes/no
Bugfix yes/no
BC Break yes/no
New Feature yes/no
RFC yes/no
QA yes/no

Description

The parent class Json Model extends the Laminas View Model that implements the getVariables function with following type:  array|ArrayAccess|Traversable

As $this->variables may be an implementation of ArrayAccess, calling array_key_exists() on $this->variables throws an error (with PHP 8.0)

see also:
https://www.php.net/manual/de/class.arrayaccess.php#104061
@weierophinney weierophinney added this to the 1.4.0 milestone Jun 10, 2021
@weierophinney weierophinney added the Bug Something isn't working label Jun 10, 2021
@weierophinney weierophinney merged commit ebdc520 into laminas-api-tools:1.4.x Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants