Last active
March 23, 2018 11:32
-
-
Save lloc/4ec6e60e04d5519ecc030d3bb01becc1 to your computer and use it in GitHub Desktop.
Revisions
-
lloc revised this gist
Mar 23, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,6 @@ abstract function get( int $id ); abstract class Transient extends Option { // expected type of $id is still int abstract function get( $id ) : Transient; } -
lloc created this gist
Mar 23, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ <?php namespace wctrn\realloc; abstract class Option { abstract function get( int $id ); } abstract class Transient extends Option { // expected type of $id is still int abstract function baz( $id ) : Transient; }