mirror of
https://github.com/danog/parser.git
synced 2024-12-12 09:09:37 +01:00
9 lines
139 B
PHP
9 lines
139 B
PHP
|
<?php
|
||
|
|
||
|
$foo = give_me_foo();
|
||
|
|
||
|
$a = [
|
||
|
'single' => $foo instanceof Foo,
|
||
|
'multiple' => $foo instanceof Bar && $foo instanceof Baz
|
||
|
];
|