Behatch / contexts

Behat extension with most custom helper steps
Other
394 stars 203 forks source link

Fix: PHP 8 Support - do not call deprecated ReflectionProperty::getClass #298

Open silverbackdan opened 3 years ago

silverbackdan commented 3 years ago

See also: https://github.com/Behatch/contexts/pull/297

This PR has resolved all my issues in relation to the getClass method being called.

The error was preventing tests from completing or getting any genuine failures from the tests.

I referenced this post for a like-for-like comparison of the methods - https://php.watch/versions/8.0/deprecated-reflectionparameter-methods#getClass