Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Genrics with Inheritance #12829

Unanswered
JeffreyDavidson asked this question in Support
Discussion options

I'm trying to understand what I'm doing wrong with the generics in this situation.

https://phpstan.org/r/49d69d89-1acd-43a2-aa9f-01ed126bc236

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

I've updated with the correct link.

You must be logged in to vote
1 reply
Comment options

The example has far too many errors for me to understand what you're trying to do.

Please do the following: Strip any generics from your example and fix all the errors you can (without using generics).

Then tell me what problem are you trying to solve with generics, and I'll try to come up with something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /