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

Add test case to illustrate how to properly match against "any object" #18

Closed
wants to merge 1 commit into from

Conversation

ralflang
Copy link
Contributor

@ralflang ralflang commented Nov 4, 2023

It's not really about a bug in the trait - it works as designed.
However, you cannot import object to the current namespace and you must not qualify a type hint against object either.
This lead to a bug in my ListenerProvider implementation and I thought it would be handy to have this unit test as an illustration of how to use this edge case.

tests/InvokableAnyObject.php Outdated Show resolved Hide resolved
@Jean85 Jean85 requested a review from a team November 6, 2023 12:17
@ralflang
Copy link
Contributor Author

Closing - discord suggested this doesn't achieve the intended heads up anf I should come up with another form of raising awareness.

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.

2 participants