Skip to content

tryTo methods must always return Boolean result#6614

Merged
Naktibalda merged 1 commit into5.0from
try-to-methods-always-return-bool
Dec 17, 2022
Merged

tryTo methods must always return Boolean result#6614
Naktibalda merged 1 commit into5.0from
try-to-methods-always-return-bool

Conversation

@Naktibalda
Copy link
Copy Markdown
Member

Fixes #6559

@Arhell Arhell requested a review from DavertMik December 9, 2022 00:11
Copy link
Copy Markdown

@jmrieger jmrieger left a comment

Choose a reason for hiding this comment

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

Running into this same issue when updating to Codeception 5. The proposed changes definitely look like they will solve the attached issue, and I also appreciate including the logical check for this in tests.

@Naktibalda Naktibalda merged commit 7bee938 into 5.0 Dec 17, 2022
@Naktibalda Naktibalda deleted the try-to-methods-always-return-bool branch December 17, 2022 15:27
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.

The generated TryTo* function does not have a return statement

3 participants