Skip to content

Compatibility with sf 8 + behat 4 + mink 3 - #42

Open
julien-maurel wants to merge 1 commit into
soyuka:mainfrom
Alltricks:sf8
Open

Compatibility with sf 8 + behat 4 + mink 3#42
julien-maurel wants to merge 1 commit into
soyuka:mainfrom
Alltricks:sf8

Conversation

@julien-maurel

Copy link
Copy Markdown
Q A
Branch? main
Bug fix? no
New feature? yes
Deprecations? yes
Tickets N/A
License MIT
Doc PR N/A

Hi,
We just migrate ours apps to symfony 8 and behat 4, so we do changes about that.
It can be merged as it but I think it might be worth spending a bit more time to have more type hinting.
What do you think ?

@Jean-Beru Jean-Beru left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @julien-maurel. Just 2 comments about BC promise.

Comment thread composer.json
"php": ">=8.0",
"behat/behat": "^3.0.13",
"friends-of-behat/mink-extension": "^2.3.1",
"behat/behat": "^4.0",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's clearly a BC break. This extension couldn't be used with Behat 3.

Comment thread src/Html.php
trait Html
{
abstract protected function getSession($name = null);
abstract public function getSession(?string $name = null): Session;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public function getSession($name = null) should be used to keep compatibility with Mink v2 and v3

@julien-maurel

Copy link
Copy Markdown
Author

Thanks for your contribution @julien-maurel. Just 2 comments about BC promise.

@Jean-Beru Yes, I didn't try to keep compatibility with current major versions and incomming ones.
This is a requirement ?

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

Successfully merging this pull request may close these issues.

2 participants