mirror of
https://github.com/danog/parser.git
synced 2024-12-13 09:37:18 +01:00
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);
|
||
|
}
|
||
|
}
|