Skip to content

Instantly share code, notes, and snippets.

@lloc
Last active March 23, 2018 11:26
Show Gist options
  • Save lloc/ee81dc2b415bd49334badf5a8f811f68 to your computer and use it in GitHub Desktop.
Save lloc/ee81dc2b415bd49334badf5a8f811f68 to your computer and use it in GitHub Desktop.
<?php
namespace wctrn\realloc;
interface Thing {
public function the_content( string $content ) : void;
}
class Tag implements Thing {
public function the_content( $content ): void {
print_r( $content );
}
}
( new Tag () )->the_content( [ 'a', 'b' ] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment