mirror of
https://github.com/danog/parser.git
synced 2024-12-12 09:09:37 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
11 lines
196 B
PHP
11 lines
196 B
PHP
<?php
|
|
|
|
trait foo {
|
|
// it's okay to have `parent` type
|
|
// since it's not known at this time if
|
|
// `foo` will have a parent.
|
|
public function bar(): parent {
|
|
exit(1);
|
|
}
|
|
}
|