Skip to content

[4.x] refactor: Resolve small refactors & deprecations#1694

Merged
acoulton merged 3 commits into
Behat:4.xfrom
acoulton:4.x-remove-deprecations
Dec 4, 2025
Merged

[4.x] refactor: Resolve small refactors & deprecations#1694
acoulton merged 3 commits into
Behat:4.xfrom
acoulton:4.x-remove-deprecations

Conversation

@acoulton

@acoulton acoulton commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

Resolves a number of deprecations and small refactors - generally around constructor signatures - that were identified in previous PRs and logged for the next major.

Partially addresses #1519

Comment on lines 33 to 34
private readonly ?JUnitDurationListener $durationListener = null,
private readonly ?ConfigurablePathPrinter $configurablePathPrinter = null,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These dependencies - and similar in a number of other classes - were added as nullable params to avoid a BC break for users creating our classes without using our service definitions. I think we should probably make them mandatory in 4.0, but I intend to handle that in a separate PR.

Comment thread src/Behat/Behat/Transformation/SimpleArgumentTransformation.php Outdated
@acoulton acoulton force-pushed the 4.x-remove-deprecations branch from 12e8dac to 00e9404 Compare November 20, 2025 09:08
Comment thread src/Behat/Behat/Transformation/Transformation/ColumnBasedTableTransformation.php Outdated
@acoulton acoulton added this to the 4.0.0 milestone Nov 24, 2025
@acoulton acoulton force-pushed the 4.x-remove-deprecations branch from 00e9404 to fbee060 Compare December 3, 2025 11:23
@acoulton acoulton changed the base branch from 3.x to 4.x December 3, 2025 11:23
@acoulton acoulton modified the milestones: 4.0.0, 4.0.0-alpha1 Dec 4, 2025
@acoulton acoulton force-pushed the 4.x-remove-deprecations branch from fbee060 to 44f9fa1 Compare December 4, 2025 09:42
Deprecated and not updated since v3.13.0
These parameters are no longer used by our code, but were kept in the
service definitions for BC for any end users who were providing their
own implementations of these classes.
@acoulton

acoulton commented Dec 4, 2025

Copy link
Copy Markdown
Contributor Author

The phpstan failure is also present in 4.x and will be fixed in a separate PR

@acoulton acoulton marked this pull request as ready for review December 4, 2025 10:19

@carlos-granados carlos-granados left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good job in the good direction 🎉

@acoulton acoulton merged commit a430241 into Behat:4.x Dec 4, 2025
21 of 22 checks passed
@acoulton acoulton deleted the 4.x-remove-deprecations branch December 4, 2025 10:31
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.

Small refactors and removals for next major version

3 participants