mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02:00
[ticket/16955] Add stubs for cache classes and clean up
PHPBB3-16955
This commit is contained in:
24
build/psalm/stubs/apcu/apcu.php
Normal file
24
build/psalm/stubs/apcu/apcu.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class APCUIterator implements Iterator
|
||||
{
|
||||
public function current()
|
||||
{
|
||||
}
|
||||
|
||||
public function next()
|
||||
{
|
||||
}
|
||||
|
||||
public function key()
|
||||
{
|
||||
}
|
||||
|
||||
public function valid()
|
||||
{
|
||||
}
|
||||
|
||||
public function rewind()
|
||||
{
|
||||
}
|
||||
}
|
20
build/psalm/stubs/memcached/memcached.php
Normal file
20
build/psalm/stubs/memcached/memcached.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
/** @link https://www.php.net/manual/en/memcached.constants.php */
|
||||
class Memcached
|
||||
{
|
||||
public const OPT_COMPRESSION = -1001;
|
||||
|
||||
public const OPT_BINARY_PROTOCOL = 18;
|
||||
}
|
21
build/psalm/stubs/redis/redis.php
Normal file
21
build/psalm/stubs/redis/redis.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
/** @link https://phpredis.github.io/phpredis/Redis.html */
|
||||
class Redis
|
||||
{
|
||||
public const OPT_PREFIX = 2;
|
||||
|
||||
public const SERIALIZER_PHP = 1;
|
||||
|
||||
}
|
@@ -10,6 +10,7 @@
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
class SQLite3
|
||||
{
|
||||
public function query(string $query) {}
|
||||
|
Reference in New Issue
Block a user