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

Grandparent constructor issues when extending twice #1309

Closed
muglug opened this issue Feb 9, 2019 · 0 comments
Closed

Grandparent constructor issues when extending twice #1309

muglug opened this issue Feb 9, 2019 · 0 comments
Labels

Comments

@muglug
Copy link
Collaborator

muglug commented Feb 9, 2019

class A {
    /**
     * @var string
     */
    public $s;

    public function __construct(string $s) {
        $this->s = $s;
    }
}
class B extends A {}
class C extends B {}

Expected: No issues
Actual: PropertyNotSetInConstructor - Property A::$t is not defined in constructor of C

@muglug muglug changed the title Grandchild template constructor issues when extending twice Grandparent constructor issues when extending twice Feb 10, 2019
@muglug muglug closed this as completed in 62fb803 Feb 10, 2019
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

1 participant