Bruce Weirdan

Results 291 comments of Bruce Weirdan

Rule of thumb: always insert semicolon after `@psalm-trace`: https://psalm.dev/r/d6349bb26d

Looks like `if` scope bleeds into the outer scope: https://psalm.dev/r/88332e680e

Simplified: https://psalm.dev/r/a0b62854e7

> `@template T as mixed = whatever` The choice of the syntax is backward incompatible as previously `= whatever` would be treated as a part of the comment. To be...

> Related (I think) @bkdotcom Not really. Type aliases and generics are two very different things. For your issue see #10625

And suppression does work (I don't see your comment here but I have it in my email notifications), but you need to do it on the statement level: https://psalm.dev/r/de79564cac

> Would it be possible to create a linked "help" page for this? Like e.g. here: Technically you can override [`$link`](https://github.com/vimeo/psalm/blob/52da29e3897b8196e075ec53c38dd5ba849242f1/src/Psalm/Internal/Analyzer/IssueData.php#L138) property of [`IssueData` instance returned from `toIssueData()` method](https://github.com/vimeo/psalm/blob/52da29e3897b8196e075ec53c38dd5ba849242f1/src/Psalm/Issue/CodeIssue.php#L71-L80) of...

What version of the doctrine bundle (where `ServiceEntityRepository` comes from) do you have?

Thanks. My guess is that Psalm is confused with a conditional class definition here: https://github.com/doctrine/DoctrineBundle/blob/2.10.x/Repository/ServiceEntityRepository.php Do you also use https://github.com/psalm/psalm-plugin-doctrine (you most likely should)?

@bohdanmoshchenko I believe this issue belongs here, as it's doctrine-specific.