Skip to content

Instantly share code, notes, and snippets.

@morria
Created May 10, 2016 19:04
Show Gist options
  • Save morria/7f0e4f7fb10ac5fb17c0f747c632dba9 to your computer and use it in GitHub Desktop.
Save morria/7f0e4f7fb10ac5fb17c0f747c632dba9 to your computer and use it in GitHub Desktop.
<?php
function f($p0, DateInterval $p1 = null) {}
function g(DateInterval $p0 = null, $p1) {}
function j(DateInterval $p0 = null, $p1 = null) {}
function k($p0 = null, DateInterval $p1 = null) {}
function m($p0 = null, DateInterval $p1) {}
function n($p0 = null, $p1) {}
@morria
Copy link
Author

morria commented May 10, 2016

<?php

class A {
    function f(A $p) {}
}

class B extends A {
    function f(B $p) {}
}

@morria
Copy link
Author

morria commented May 10, 2016

<?php
function f($p0, DateInterval $p1 = null) {}
function g(DateInterval $p0 = null, $p1) {}
function j(DateInterval $p0 = null, $p1 = null) {}
function k($p0 = null, DateInterval $p1 = null) {}
function m($p0 = null, DateInterval $p1) {}
function n($p0 = null, $p1) {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment