Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruleset: add tests for custom property type handling #704

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 21, 2024

Description

Add tests specifically aimed at testing the type handling of sniff properties set via a ruleset and via inline annotations.

The current tests document the existing behaviour, which contains some oddities, but fixing these could be considered a breaking change, so should wait until PHPCS 4.0.

Suggested changelog entry

N/A

Related issues/external references

This PR is part of a series of PRs expanding the tests for the Ruleset class.

Add tests specifically aimed at testing the type handling of sniff properties set via a ruleset and via inline annotations.

The current tests document the existing behaviour, which contains some oddities, but fixing these could be considered a breaking change, so should wait until PHPCS 4.0.
@jrfnl jrfnl merged commit 374519b into master Nov 22, 2024
72 checks passed
@jrfnl jrfnl deleted the feature/ruleset-add-property-type-handling-tests branch November 22, 2024 17:03
@jrfnl
Copy link
Member Author

jrfnl commented Nov 22, 2024

I've opened issue #708 to discuss the above mentioned oddities and changing this in PHPCS 4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants