Skip to content

Conversation

kkmuffme
Copy link
Contributor

Fix #1777

No tests added yet, bc adding them would cause conflicts with the other one of my PRs. Feel free to just copy the test case provided in the issue as a unit test yourself or I'll do it once the other PR is merged (and I can rebase this one)

@kukulich
Copy link
Contributor

Looks good but tests are missing.

@kkmuffme
Copy link
Contributor Author

Tests need to be version specific, since transformation of bool/true depends on the php_version in phpcs config. Waiting for reply of #1776 (comment) so I know how/what tests to add specifically

@kukulich
Copy link
Contributor

Tests need to be version specific, since transformation of bool/true depends on the php_version in phpcs config

Tests should depend only on the value of the enableStandaloneNullTrueFalseTypeHints option. I don't see any reason why tests should be PHP version specific here.

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.

SlevomatCodingStandard.TypeHints incorrectly removes @return true if type hint is bool
2 participants