Skip to content

Various sniffs: add tests for properties with asymmetric visibility #1125

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

Draft
wants to merge 6 commits into
base: php-8.4/feature/file-methods-support-asym-visibility
Choose a base branch
from

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 6, 2025

Description

⚠️ This PR depends on PR #1116.

Generic/UnusedFunctionParameter: add tests for properties with asymmetric visibility

This sniff already handles this correctly.
This commit just updates the tests to safeguard this for the future.

Generic/LowerCaseType: add test for properties with asymmetric visibility

This sniff already handles this correctly.
This commit just updates a test to safeguard this for the future.

Generic/UpperCaseConstant: add tests for properties with asymmetric visibility

Sniff already behaves as intended as the parent sniff LowerCaseConstant inherits support via the Tokens::$scopeModifiers array since PR #871.
This commit just adds some extra tests to safeguard this for the future.

PEAR/ValidDefaultValue: add test for properties with asymmetric visibility

This sniff already handles this correctly.
This commit just updates a test to safeguard this for the future.

Squiz/ValidVariableName: add tests for properties with asymmetric visibility

Sniff already behaves as intended. This commit just adds some extra tests to safeguard this for the future.

Zend/ValidVariableName: add tests for properties with asymmetric visibility

Sniff already behaves as intended. This commit just adds some extra tests to safeguard this for the future.

Suggested changelog entry

N/A

Related issues/external references

Follow up on #851
Follow up on #1116

Related to #734

jrfnl added 6 commits June 6, 2025 02:16
…tric visibility

This sniff already handles this correctly.
This commit just updates the tests to safeguard this for the future.
…lity

This sniff already handles this correctly.
This commit just updates a test to safeguard this for the future.
…isibility

Sniff already behaves as intended as the parent sniff `LowerCaseConstant` inherits support via the `Tokens::$scopeModifiers` array since PR 871.
This commit just adds some extra tests to safeguard this for the future.
…ility

This sniff already handles this correctly.
This commit just updates a test to safeguard this for the future.
…ibility

Sniff already behaves as intended. This commit just adds some extra tests to safeguard this for the future.
…bility

Sniff already behaves as intended. This commit just adds some extra tests to safeguard this for the future.
@jrfnl jrfnl added this to the 3.13.1 milestone Jun 6, 2025
@jrfnl jrfnl mentioned this pull request Jun 6, 2025
43 tasks
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.

1 participant