parser/phpast/samples/type-strings.php

17 lines
162 B
PHP
Raw Normal View History

2022-07-23 16:49:27 +02:00
<?php
2022-07-23 17:01:11 +02:00
function plain(string $b) {
2022-07-23 17:01:11 +02:00
}
function nullable(?string $f) {
2022-07-23 16:49:27 +02:00
2022-07-23 16:51:16 +02:00
}
2022-07-23 17:01:11 +02:00
function foo(int|float $bar) {
}
function intersection(Model&HasComments $model) {
2022-07-23 16:49:27 +02:00
}