Skip to content

Instantly share code, notes, and snippets.

@dstogov
Created June 25, 2019 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstogov/9839a98949965e444bd11c7c70587f49 to your computer and use it in GitHub Desktop.
Save dstogov/9839a98949965e444bd11c7c70587f49 to your computer and use it in GitHub Desktop.
<?php
class X {
}
abstract class A {
abstract function __construct(X $x);
}
class B extends A {
function __construct(object $x) {}
}
class C extends B {
function __construct(Y $x) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment