Skip to content

Fix using assertions in ConfigConverterTools#1679

Merged
carlos-granados merged 1 commit intoBehat:masterfrom
carlos-granados:fix-use-assertions
Oct 24, 2025
Merged

Fix using assertions in ConfigConverterTools#1679
carlos-granados merged 1 commit intoBehat:masterfrom
carlos-granados:fix-use-assertions

Conversation

@carlos-granados
Copy link
Copy Markdown
Contributor

In the ConfigConverterTools we were using assert to check a couple of conditions that should be checked at run time. The problem is that php assertions can be disabled and are not guaranteed to be available. This PR modifies the code to use if statements and exceptions instead

Copy link
Copy Markdown
Contributor

@acoulton acoulton left a comment

Choose a reason for hiding this comment

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

Great, thanks @carlos-granados

@carlos-granados carlos-granados merged commit 69d11bd into Behat:master Oct 24, 2025
19 checks passed
@carlos-granados carlos-granados deleted the fix-use-assertions branch October 24, 2025 08:12
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