Skip to content
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

Fix callable call #98

Merged
merged 8 commits into from
Jul 6, 2024
Merged

Fix callable call #98

merged 8 commits into from
Jul 6, 2024

Conversation

xepozz
Copy link
Member

@xepozz xepozz commented Jul 1, 2024

Q A
Is bugfix? ✔️
New feature?
Breaks BC?

Reflections and other internal functions don't provide necessary information such as line or file if they're used during trace. So changing callable call to a regular $callable(...$args) solves this. There're proves:

Current version

image image

Fixed version

image image

@xepozz xepozz requested a review from a team July 1, 2024 18:13
@xepozz xepozz added the status:code review The pull request needs review. label Jul 1, 2024
@roxblnfk
Copy link
Member

roxblnfk commented Jul 1, 2024

Could you add a test case?

Copy link
Member

@samdark samdark left a comment

Choose a reason for hiding this comment

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

Nice! A changelog is needed. A test case would be awesome to have as well.

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.

Need info in changelog

@vjik
Copy link
Member

vjik commented Jul 3, 2024

@roxblnfk @samdark What does tests you ask about? Already exists many tests of Injector::invoke(): https://github.com/yiisoft/injector/blob/master/tests/Common/InjectorTest.php

@xepozz xepozz requested review from vjik, samdark and a team July 3, 2024 06:32
@samdark
Copy link
Member

samdark commented Jul 3, 2024

@vjik these are about trace improvements.

Co-authored-by: Sergei Predvoditelev <[email protected]>
@xepozz xepozz merged commit dbedf48 into master Jul 6, 2024
23 of 24 checks passed
@xepozz xepozz deleted the fix-callable-call branch July 6, 2024 18:02
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.

5 participants