1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +01:00
psalm/tests/fixtures/stubs/conditional_interface.phpstub

81 lines
981 B
PHP
Raw Normal View History

<?php
if (interface_exists(Foo::class)) {
2019-07-05 22:24:00 +02:00
interface I1 extends Foo
{
}
} else {
2019-07-05 22:24:00 +02:00
interface I1
{
}
}
if (!interface_exists(Foo::class)) {
2019-07-05 22:24:00 +02:00
interface I2
{
}
} else {
2019-07-05 22:24:00 +02:00
interface I2 extends Foo
{
}
}
if (interface_exists('Bar')) {
2019-07-05 22:24:00 +02:00
interface I3 extends Bar
{
}
} else {
2019-07-05 22:24:00 +02:00
interface I3
{
}
}
if (!interface_exists('Bar')) {
2019-07-05 22:24:00 +02:00
interface I4
{
}
} else {
2019-07-05 22:24:00 +02:00
interface I4 extends Bar
{
}
}
if (interface_exists('Throwable')) {
2019-07-05 22:24:00 +02:00
interface I5 extends Throwable
{
}
} else {
2019-07-05 22:24:00 +02:00
interface I5
{
}
}
if (!interface_exists('Throwable')) {
2019-07-05 22:24:00 +02:00
interface I6
{
}
} else {
2019-07-05 22:24:00 +02:00
interface I6 extends Throwable
{
}
}
if (interface_exists(Throwable::class)) {
2019-07-05 22:24:00 +02:00
interface I7 extends Throwable
{
}
} else {
2019-07-05 22:24:00 +02:00
interface I7
{
}
}
if (!interface_exists(Throwable::class)) {
2019-07-05 22:24:00 +02:00
interface I8
{
}
} else {
2019-07-05 22:24:00 +02:00
interface I8 extends Throwable
{
}
}