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

Generic tag incompatible with parent false positive #2610

Open
calebdw opened this issue Mar 18, 2024 · 0 comments
Open

Generic tag incompatible with parent false positive #2610

calebdw opened this issue Mar 18, 2024 · 0 comments
Labels

Comments

@calebdw
Copy link

calebdw commented Mar 18, 2024

Hello!

This is related to #2295, apparently there is still an edge case which has not been covered yet.

The following test should fail:

<?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 {}

Thanks!

@dantleech dantleech added the bug label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants