diff --git a/PhpStormStubsMap.php b/PhpStormStubsMap.php index 1692e74a1..eee7e5940 100644 --- a/PhpStormStubsMap.php +++ b/PhpStormStubsMap.php @@ -662,6 +662,9 @@ final class PhpStormStubsMap 'LuaSandboxRuntimeError' => 'LuaSandbox/LuaSandbox.php', 'LuaSandboxSyntaxError' => 'LuaSandbox/LuaSandbox.php', 'LuaSandboxTimeoutError' => 'LuaSandbox/LuaSandbox.php', + 'MaxMind\\Db\\InvalidDatabaseException' => 'maxminddb/maxminddb.php', + 'MaxMind\\Db\\Metadata' => 'maxminddb/maxminddb.php', + 'MaxMind\\Db\\Reader' => 'maxminddb/maxminddb.php', 'Memcache' => 'memcache/memcache.php', 'MemcachePool' => 'memcache/memcache.php', 'Memcached' => 'memcached/memcached.php', diff --git a/maxminddb/maxminddb.php b/maxminddb/maxminddb.php new file mode 100644 index 000000000..e8c052e49 --- /dev/null +++ b/maxminddb/maxminddb.php @@ -0,0 +1,167 @@ + + */ + public array $description; + + /** + * This is an unsigned 16-bit integer which is always 4 or 6. It indicates + * whether the database contains IPv4 or IPv6 address data. + * + * @var int + */ + public int $ipVersion; + + /** + * An array of strings, each of which is a language code. A given record + * may contain data items that have been localized to some or all of + * these languages. This may be undefined. + * + * @var array + */ + public array $languages; + + /** + * @var int + */ + public int $nodeByteSize; + + /** + * This is an unsigned 32-bit integer indicating the number of nodes in + * the search tree. + * + * @var int + */ + public int $nodeCount; + + /** + * This is an unsigned 16-bit integer. It indicates the number of bits in a + * record in the search tree. Note that each node consists of two records. + * + * @var int + */ + public int $recordSize; + + /** + * @var int + */ + public int $searchTreeSize; +} diff --git a/tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php b/tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php index 02b5f9b2e..08591829d 100644 --- a/tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php +++ b/tests/TestData/Providers/Stubs/PhpCoreStubsProvider.php @@ -117,6 +117,7 @@ class PhpCoreStubsProvider 'libevent', 'LuaSandbox', 'lzf', + 'maxminddb', 'mailparse', 'memcache', 'memcached',