Skip to content

Conversation

@rustamwin
Copy link
Member

Q A
Is bugfix?
New feature? ✔️
Breaks BC?
Fixed issues #110

@rustamwin rustamwin requested a review from a team October 23, 2025 07:06
@rustamwin rustamwin added the status:code review The pull request needs review. label Oct 23, 2025
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff             @@
##              master      #111   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       110       114    +4     
===========================================
  Files              8         8           
  Lines            304       297    -7     
===========================================
- Hits             304       297    -7     

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

return is_subclass_of($definition, MiddlewareInterface::class)
|| (
$this->container->has($definition)
&& $this->container->get($definition) instanceof MiddlewareInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems it's incorrect to build an object while checking this
Also I sugest to split this check onto two independent:

  • isContainerAlias
  • isMiddlewareClassDefinition

@samdark
Copy link
Member

samdark commented Oct 23, 2025

Docs should be expanded to include this feature.

Copy link
Member

@vjik vjik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InvalidMiddlewareDefinitionException should be improved to include this feature.

@rustamwin rustamwin requested review from vjik and xepozz October 24, 2025 07:05
Copy link
Member

@vjik vjik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems, it can be merge

@samdark samdark merged commit 02db502 into master Oct 25, 2025
24 of 25 checks passed
@samdark samdark deleted the fix-110 branch October 25, 2025 19:08
@samdark
Copy link
Member

samdark commented Oct 25, 2025

👍

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

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants