mirror of
https://github.com/danog/parser.git
synced 2024-12-03 09:57:45 +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);
|
|
}
|
|
}
|