Merge pull request #40321 from nextcloud/fix/supress-statana-warning-memcache

[stable23] fix(caching): suppress static analysis warning for memcaching
This commit is contained in:
Arthur Schiwon 2023-09-13 21:56:26 +02:00 committed by GitHub
commit d844c956b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,10 @@ class Memcached extends Cache implements IMemcache {
//\Memcached::OPT_BINARY_PROTOCOL => true,
];
// by default enable igbinary serializer if available
/** @psalm-suppress RedundantCondition */
/**
* @psalm-suppress RedundantCondition
* @psalm-suppress TypeDoesNotContainType
*/
if (\Memcached::HAVE_IGBINARY) {
$defaultOptions[\Memcached::OPT_SERIALIZER] =
\Memcached::SERIALIZER_IGBINARY;