Skip to content

3.6.0

Choose a tag to compare

@github-actions github-actions released this 18 Mar 09:46
· 40 commits to refs/heads/main since this release

What's new since 3.5.2

Switched to PHP attributes.

Warning

If you extend any of the bundled context classes and override step or hook
methods, you must switch your overrides from docblock annotations (@Given,
@When, @Then, @BeforeScenario, etc.) to PHP 8 attributes (#[Given],
#[When], #[Then], #[BeforeScenario], etc.). Behat resolves both the
parent attribute and the child annotation independently, which causes a
RedundantStepException for step definitions and duplicate execution for
hooks. To safely override a method, either re-declare the step/hook using
only the PHP 8 attribute on the child (and remove it from the parent by not
registering the parent context), or override the method without any
annotation or attribute to inherit the parent's definition.

Full Changelog: 3.5.2...3.6.0

@AlexSkrypnyk, @renovate[bot] and renovate[bot]