Skip to content

Enhancement: Implement Constants\NoAccessToStaticConstantViaInstanceRule, Methods\NoAccessToStaticMethodViaInstanceRule, and Properties\NoAccessToStaticPropertyViaInstanceRule #1022

Open
localheinz wants to merge 1 commit intomainfrom
feature/no-access-to-static-member
Open

Enhancement: Implement Constants\NoAccessToStaticConstantViaInstanceRule, Methods\NoAccessToStaticMethodViaInstanceRule, and Properties\NoAccessToStaticPropertyViaInstanceRule #1022
localheinz wants to merge 1 commit intomainfrom
feature/no-access-to-static-member

Conversation

@localheinz
Copy link
Member

This pull request

  • implements a Constants\NoAccessToStaticConstantViaInstanceRule, a Methods\NoAccessToStaticMethodViaInstanceRule, and a Properties\NoAccessToStaticPropertyViaInstanceRule which report an error when a constant, static method, or static property is accessed via an instance instead of a class name

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 94.68085% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.98%. Comparing base (06a59d0) to head (5ab0d56).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/ErrorIdentifier.php 0.00% 2 Missing ⚠️
...rc/Constants/NoAccessToConstantViaInstanceRule.php 96.87% 1 Missing ⚠️
.../Methods/NoAccessToStaticMethodViaInstanceRule.php 96.66% 1 Missing ⚠️
...erties/NoAccessToStaticPropertyViaInstanceRule.php 96.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1022      +/-   ##
============================================
- Coverage     98.23%   97.98%   -0.25%     
- Complexity      319      360      +41     
============================================
  Files            38       41       +3     
  Lines          1244     1338      +94     
============================================
+ Hits           1222     1311      +89     
- Misses           22       27       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ethods\NoAccessToStaticMethodViaInstanceRule, and Properties\NoAccessToStaticPropertyViaInstanceRule
@localheinz localheinz force-pushed the feature/no-access-to-static-member branch from 91e29a2 to 5ab0d56 Compare February 18, 2026 07:26
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