Skip to content

Move qualifier attributes from method-level to parameter-level#35

Merged
koriym merged 2 commits into
1.xfrom
fix-parameter-level-qualifier-attributes
Apr 25, 2026
Merged

Move qualifier attributes from method-level to parameter-level#35
koriym merged 2 commits into
1.xfrom
fix-parameter-level-qualifier-attributes

Conversation

@koriym
Copy link
Copy Markdown
Member

@koriym koriym commented Apr 25, 2026

Method-level #[CacheDir] and #[CacheNamespace] attributes on the constructor were not resolved by Ray.Di, which only processes parameter-level attributes. This caused the cache directory to always fall back to sys_get_temp_dir() instead of using the bound CacheDir value.

Method-level #[CacheDir] and #[CacheNamespace] attributes on the
constructor were not resolved by Ray.Di, which only processes
parameter-level attributes. This caused the cache directory to
always fall back to sys_get_temp_dir() instead of using the
bound CacheDir value.
The bootstrap was setting up a Doctrine annotation reader via the
deprecated Ray\ServiceLocator\ServiceLocator. This is no longer needed
since the package uses native PHP 8 attributes. The koriym/attributes
package is not declared in composer.json, causing CI to fail with
"Class Koriym\Attributes\AttributeReader not found".
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7443832) to head (3a3a566).
⚠️ Report is 3 commits behind head on 1.x.

Additional details and impacted files
@@             Coverage Diff             @@
##                 1.x       #35   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        38        38           
===========================================
  Files             24        24           
  Lines             90        90           
===========================================
  Hits              90        90           

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant