Skip to content

Fix: Adjust Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to remove unnecessary imports without adding a prefix import when the file namespace is the parent namespace prefix#312

Merged
localheinz merged 2 commits intomainfrom
fix/parent
Mar 18, 2026

Conversation

@localheinz
Copy link
Member

@localheinz localheinz commented Mar 18, 2026

This pull request

  • asserts that Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector removes unnecessary imports without adding a prefix import when the file namespace is the parent namespace prefix
  • adjusts Rules\Files\ReferenceNamespacedSymbolsRelativeToNamespacePrefixRector to remove unnecessary imports without adding a prefix import when the file namespace is the parent namespace prefix

…veToNamespacePrefixRector removes unnecessary imports without adding a prefix import when the file namespace is the parent namespace prefix
@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 89.28571% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.86%. Comparing base (fbcba45) to head (d248389).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...mespacedSymbolsRelativeToNamespacePrefixRector.php 89.28% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #312      +/-   ##
============================================
+ Coverage     84.80%   84.86%   +0.06%     
- Complexity      334      336       +2     
============================================
  Files            10       10              
  Lines          1158     1163       +5     
============================================
+ Hits            982      987       +5     
  Misses          176      176              

☔ 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.

…PrefixRector to remove unnecessary imports without adding a prefix import when the file namespace is the parent namespace prefix
@localheinz localheinz merged commit 2dee208 into main Mar 18, 2026
27 checks passed
@localheinz localheinz deleted the fix/parent branch March 18, 2026 09:14
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