Skip to content

Ruleset: add tests for custom property type handling#704

Merged
jrfnl merged 1 commit intomasterfrom
feature/ruleset-add-property-type-handling-tests
Nov 22, 2024
Merged

Ruleset: add tests for custom property type handling#704
jrfnl merged 1 commit intomasterfrom
feature/ruleset-add-property-type-handling-tests

Conversation

@jrfnl
Copy link
Copy Markdown
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
@jrfnl jrfnl deleted the feature/ruleset-add-property-type-handling-tests branch November 22, 2024 17:03
@jrfnl
Copy link
Copy Markdown
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