Skip to content

Instantly share code, notes, and snippets.

View hack3p's full-sized avatar

Gritsak Oleg hack3p

  • Saint-Petersburg
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hack3p on github.
  • I am hack3p (https://keybase.io/hack3p) on keybase.
  • I have a public key ASD9EfPUijtqkiZbaPd2hg15NPev-V8xJUHZtri6zrKvvgo

To claim this, I am signing this object:

@hack3p
hack3p / test_script.php
Last active January 17, 2018 10:34
PHP invariant types. Test script.
<?php
// example 1: return type
class A
{
function foo(): A
{
return $this;
}
}