1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/stubs/Php81.phpstub

43 lines
819 B
Plaintext
Raw Normal View History

<?php
2021-09-04 22:44:06 +02:00
namespace {
interface UnitEnum {
2021-11-22 13:38:08 +01:00
/** @var non-empty-string $name */
public readonly string $name;
2021-09-04 22:44:06 +02:00
/** @return non-empty-list<static> */
public static function cases(): array;
}
interface BackedEnum
{
public readonly int|string $value;
public static function from(string|int $value): static;
public static function tryFrom(string|int $value): ?static;
}
2021-09-04 22:44:06 +02:00
}
2021-09-04 22:44:06 +02:00
namespace FTP {
final class Connection {}
}
namespace IMAP {
final class Connection {}
2021-10-02 19:30:50 +02:00
}
2021-10-03 07:52:16 +02:00
namespace LDAP {
2021-10-02 19:30:50 +02:00
final class Connection {}
final class Result {}
final class ResultEntry {}
2021-10-04 13:41:31 +02:00
}
namespace PgSql {
final class Connection {}
final class Result {}
final class Lob {}
}
2021-10-14 20:38:26 +02:00
namespace PSpell {
final class Config {}
final class Dictionary {}
}