Kamil Kokot 41bac3c5b7 Remove inline @var annotations; fix spec session name; fix @var placement
- Replace all local-variable @var annotations with proper type guards:
  - MinkExtension configure closure: build inner array directly
    ($sessions[$driverType] = [$driverType => ...]) to avoid mixed offset access
  - MinkExtension loadSessions: add is_array($session) guard inside foreach
    so PHPStan narrows $session from mixed to array before key() call
  - DriverFactory::buildDriver @param broadened from array<string, mixed>
    to array<mixed> — is_array() only narrows to array<mixed> (key type
    unknown), so array<string, mixed> was unreachable at the call site
  - MinkAwareInitializer: move @var from inside constructor parameter list
    to a proper @param on the method docblock
- SessionsListenerSpec: replace 'goutte' (deleted driver) with
  'browserkit_http' as the example default session name

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-06-12 18:04:18 +02:00
2012-05-06 21:53:36 +02:00
2022-07-01 12:40:00 +03:00

This is the fork of MinkExtension library that supports PHP >=7.4 and supports Symfony >=4.4.

For the documentation, please refer to the original repository.

No updates other than Symfony compatibility will be provided, but this fork might be synchronised with the original repository in the future.

Description
Fork of FriendsOfBehat MinkExtension with Behat 4 / Symfony 8 compatibility work
Readme MIT 603 KiB
Languages
PHP 99.4%
Gherkin 0.6%