1<?php
2class ClassWithSelfTypeHint
3{
4    public function foo(self $foo)
5    {
6    }
7}
8