-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Generic tag reported to be incompatible when correct for child generic classes #2295
Comments
@dantleech, this was fixed but started reporting again...was there a regression? |
the tests would indicate that it's fine: phpactor/lib/WorseReflection/Bridge/TolerantParser/Diagnostics/DocblockMissingExtendsTagProvider.php Lines 309 to 331 in 6f23af2
maybe something else changed on your side? or the test doesn't cover your case? |
That looks like the test for #2262, but this is a separate case. The test does not give me any issues |
This should produce a failing test: <?php
namespace Phpactor;
abstract class Model {}
class Schedule extends Model {}
/** @template TModel of \Phpactor\Model */
class Factory {}
/**
* @template TModel of Schedule
* @extends Factory<TModel>
*/
class ScheduleFactory extends Factory {} |
Hello!
I'm experiencing a problem similar to #2262, but this time when making child classes generic:
Code Example:
From PHPStan:
Thanks!
The text was updated successfully, but these errors were encountered: