Skip to content

classes overriding docblock comments of a parent class do not report an error #718

@Bleksak

Description

@Bleksak

Description

should report:

Parameter $options of X::x() expects type array{'concrete': int} but parent BaseClass::x() expects type array<string, mixed>

but doesnt

on abstract classes/interfaces this works properly

Playground Link

https://mago.carthage.software/playground#019afe6c-d988-72ef-5b3e-c811d72227f8

Reproduction

No response

Environment

rc11

Metadata

Metadata

Assignees

Labels

Priority: HighAfter critical issues are fixed, handle these before any further issues.Status: ClosedThis issue is closed and no more work is planned.Subject: AnalyzerAn issue or PR related to the static analyzer/type checker.Type: BugAn issue causing unintended or problematic behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions