From e099a961af2a1b2d4b678069dee8a2c2503c4675 Mon Sep 17 00:00:00 2001 From: Dennis Riehle Date: Fri, 10 Jan 2025 18:18:47 +0100 Subject: [PATCH] updated Psalm baseline Signed-off-by: Dennis Riehle --- psalm-baseline.xml | 1287 ++++++++++++++++++++++++-------------------- 1 file changed, 695 insertions(+), 592 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 1f7c7266..4268d6a6 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,54 +1,54 @@ - + - $cacheConfiguration - $configuration + + - $cache - $cacheConfiguration - $caches - $caches - $configuration + + + + + - $projectConfiguration + - BadMethodCallException + - MissingDependencyException + - OutOfSpaceException + - UnexpectedValueException + - UnsupportedMethodCallException + - Module + - PatternOptions + options]]> @@ -56,198 +56,209 @@ - $function + - $result + - $result[0] - $result[1] + + - $object - $result - $ret + + + - __call + - $perm !== false + - $content + - clearByGlob - set + + - $content - $perm - $perm + + + + + - isFile + - $publicDir + - clearByGlob - start + + - bool - bool - string|null + + + + + + - $method - $method + + - $callback[1] + call('__set', [$name, $value])]]> call('__unset', [$name])]]> - $callback[1] - $property - $property - $property - $property + + + + + - $property - $property - $property - $property - $value + + + + + - bool - void - void + + + - $method + call('__isset', [$name])]]> - $method - $method + + - $object - $object - $object - $object - $object - $object - $object - $object + + + + + + + + - __get - __set + + - $data - $key + + - $data - $key + + - end - start + + - (string) $key + + + + - $array + + + + - $dirPermission - $filePermission - $umask + + + - setCacheByDefault - setDirPermission - setFileLocking - setFilePermission - setObject - setObjectCacheMagicProperties - setObjectCacheMethods - setObjectNonCacheMethods - setPublicDir - setUmask + + + + + + + + + + - (bool) $cacheOutput - (bool) $fileLocking - (bool) $objectCacheMagicProperties - (string) $indexFilename - (string) $objectKey - (string) $publicDir + + + + + + - is_array($result) + - validateKey - validateKeys - validateStorage + + + - $cleared - $key - $value - $value + + + + - flush + - null === $ttl + - $key - $key + + - $key - $key - $result - $result - $results[$key] - $value + + + + + + - $ttl - $ttl + + storage->removeItem($key)]]> @@ -255,7 +266,7 @@ - $pluginConfiguration + @@ -267,17 +278,17 @@ get(StoragePluginFactoryInterface::class)]]> - StorageAdapterFactory + - object + - StorageInterface + @@ -285,14 +296,65 @@ get(PluginManager::class)]]> - StoragePluginFactory + - $plugin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -303,109 +365,110 @@ - bool + - $handle - $keyValuePairs - $keyValuePairs - $keyValuePairs - $normalizedKey - $normalizedKey - $normalizedKey - $normalizedKey - $normalizedKey - $value - $value + + + + + + + + + + + - $key - $normalizedKey - $normalizedKey - $normalizedKey - $normalizedKey - $normalizedKey + + + + + + + - $handle - $normalizedKey - $normalizedKey - $normalizedKey - $normalizedKey - $normalizedKey - $normalizedKeyValuePairs[$key] - $oldValue - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result - $result[$normalizedKey] - $value - $value - $value - $value - $value - $value - $value - $value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - AdapterOptions - Capabilities - array - array - array - array - array - array - array - array - array - array - array|bool - bool - bool - bool - bool - bool - bool - bool - int|bool - int|bool - int|bool - int|bool + + + + + + + + + + + + + + + + + + + + + + + + - setAdapter + - $newValue - $newValue + + options]]> triggerException(__FUNCTION__, $args, $keys, $e)]]> triggerException(__FUNCTION__, $args, $keys, $e)]]> @@ -451,7 +514,7 @@ triggerPost(__FUNCTION__, $args, $result)]]> - $success + @@ -460,85 +523,106 @@ - getCaching - setCaching + + - $pluginRegistry + - (bool) $flag - (int) $value - (int) $value - (string) $key + + + + + + + - is_array($options) + + + $optionValue])]]> + + + + + + + + + + - $letters + + + + - $key - $letter - $letters + + + + + + - $array[$normalizedKey] - $key - $letter - $value + + + + - $this + - (bool) $readable - (bool) $writable - (string) $keyPattern - (string) $namespace + + + + - (int) $mode + - $instanceOf + - AvailableSpaceCapableInterface + - is_string($name) + - $name + - $toType - $value + + - array - array - bool - bool - bool - float - int - int - int - int - string + + + + + + + + + + + getCapability('lockOnExpire', 0)]]> @@ -563,91 +647,91 @@ getCapability('useRequestTime', false)]]> - getNamespaceIsPrefix - getNamespaceSeparator - getSupportedMetadata - getTtlPrecision - setLockOnExpire - setMaxKeyLength - setMinTtl - setNamespaceIsPrefix - setNamespaceSeparator - setStaticTtl - setSupportedDatatypes - setSupportedMetadata - setTtlPrecision - setUseRequestTime + + + + + + + + + + + + + + - $lockOnExpire - $maxKeyLength - $maxTtl - $minTtl - $namespaceIsPrefix - $namespaceSeparator - $staticTtl - $supportedDatatypes - $supportedMetadata - $ttlPrecision - $useRequestTime + + + + + + + + + + + - Capabilities + - (bool) $flag - (bool) $flag - (bool) $flag - (float) $ttlPrecision - (int) $maxKeyLength - (int) $maxTtl - (int) $minTtl - (int) $timeout - (string) $separator + + + + + + + + + - ClearByPrefixInterface + - bool + - Event + - $target - $target + + - Event + - (bool) $flag + - IterableInterface + - getMode - getStorage - setMode + + + - bool + @@ -655,46 +739,58 @@ options]]> - $options - $options - $options - $options - $options + + + + + + + + + + - PluginInterface + + + serializer, $options)]]> + + serializer]]> - SerializerAdapter + + + + serializerOptions]]> - setExitOnAbort - setOptimizingFactor - setSerializerOptions + + + - $serializer + - (bool) $exitOnAbort - (bool) $throwExceptions - (int) $factor + + + - $baseCapabilities - $baseCapabilities + + getAdapter()]]> @@ -702,151 +798,154 @@ - $result - $value + + - $keyValuePairs[$failedKey] - $keyValuePairs[$failedKey] - $keyValuePairs[$key] - $keyValuePairs[$key] - $keyValuePairs[$key] - $keyValuePairs[$key] - $keyValuePairs[$key] - $keyValuePairs[$key] + + + + + + + + - $baseCapabilities - $failedKey - $failedKey - $key - $key - $keyValuePairs[$key] - $keyValuePairs[$key] - $keyValuePairs[$key] - $keyValuePairs[$key] - $newValue - $newValue - $oldValue - $oldValue - $result - $result - $result - $value - $value - $value - $value - $value + + + + + + + + + + + + + + + + + + + + + - getAdapter + - $keyValuePairs[$key] - $keyValuePairs[$key] - $oldValue - $oldValue + + + + - $oldValue - $oldValue + + - $plugin + - $aliases - $factories - $instanceOf + + + + + + - $value + - addItem - decrementItem - incrementItem - replaceItem - touchItem + + + + + - StorageInterface + - TaggableInterface + - TotalSpaceCapableInterface + - withConsecutive - withConsecutive - withConsecutive - withConsecutive - withConsecutive + + + + + - getCommonPatternNamesProvider + - $pattern - $pattern - $pattern - $pattern + + + + - $event + - $key + - $generatedKey - $key - $params - $return - $return - $usedKey + + + + + + - attach - getParams + + - getCommonPatternNamesProvider + - call - call - call - call - call - call - generateKey - generateKey - getEventManager + + + + + + + + + @@ -856,30 +955,33 @@ - getCommonPatternNamesProvider + + + tmpCacheDir]]> + - set - set + + - $event + - $generatedKey - $params - $return - $return - $usedKey + + + + + - attach - getParams + + pattern->property]]> @@ -894,252 +996,250 @@ options->getObject()->property]]> - getCommonPatternNamesProvider + - call - generateKey - getEventManager + + + - getItem - setItem + + - getCommonPatternNamesProvider + - end - start - start - start + + + + - TestCachePattern + - emptyMethod + - emptyMethod + - emptyMethod + - $property + - withConsecutive - withConsecutive + + - $keys - $keys + + - testDeleteItemInvalidKeyThrowsException - testGetItemInvalidKeyThrowsException - testHasItemInvalidKeyThrowsException + + + - $item - $key - $key - $key + + + + - $item - $item - $item + + + - get - get - get - get - get - getKey - isHit - isHit - isHit - isHit - isHit - isHit - isHit - set + + + + + + + + + + + + + + + + tz]]> + - [] + - withConsecutive - withConsecutive - withConsecutive - withConsecutive - withConsecutive + + + + + - testHasProxiesToStorage - testSetMultipleRaisesExceptionWhenTtlValueIsInvalid - testSetMultipleShouldRaisePsrInvalidArgumentExceptionForInvalidKeys - testSetMultipleShouldRemoveItemsFromCacheIfTtlIsBelow1 - testSetMultipleShouldRemoveItemsFromCacheIfTtlIsBelow1AndStorageDoesNotSupportPerItemTtl - testSetRaisesExceptionWhenTtlValueIsInvalid - testSetShouldAcknowledgeStorageAdapterMaxKeyLengthWithPsrDecorator - testSetShouldRaisePsrInvalidArgumentExceptionForInvalidKeys - testSetShouldRemoveItemFromCacheIfTtlIsBelow1 - testSetShouldRemoveItemFromCacheIfTtlIsBelow1AndStorageDoesNotSupportPerItemTtl + + + + + + + + + + - $ttl - $ttl + + - array - array - array + + + + + + - setCapabilities + - TtlStorage + - Generator - Generator + + - withConsecutive + - withConsecutive - withConsecutive + + - withConsecutive - withConsecutive + + - AdapterPluginManagerTypes + - PluginManagerTypes + - $event + - static function ($event) use ($retVal) { + - $success + - - $eventList[] - $eventList[] - $eventList[] - - $result - $result - $rs - $v + + + + - array + - getResult - stopPropagation + + - null + - getNamespace - setKeyPattern - setKeyPattern - setKeyPattern - setNamespace - setNamespace - setReadable - setTtl - setTtl - setWritable + + + + + + + + + + - $success + - - $calledArgs - - - $calledArgs[0] - + + + - getKeyPattern - getTtl - setAdapter - setFromArray - setKeyPattern - setKeyPattern - setNamespace - setReadable - setTtl - setTtl - setWritable + + + + + + + + + + + - $storage + - addPlugin + - AdapterWithStorageAndEventsCapableInterface + - testPluginAliasesResolve - testShareByDefaultAndSharedByDefault + + @@ -1147,24 +1247,24 @@ - $eventArg + - $em - $event + + - attach + - getEventManager + - getCommonPluginNamesProvider - testOptionObjectAvailable - testOptionsGetAndSetDefault + + + @@ -1173,18 +1273,18 @@ adapter->getEventManager()]]> - setMethods + - $cb - $cb + + - $cb[0] - $cb[1] + + - clearExpiredByFactor + @@ -1193,19 +1293,19 @@ adapter->getEventManager()]]> - $cb - $cb + + - $cb[0] - $cb[1] + + - $exception + - onException - onException + + @@ -1214,12 +1314,12 @@ adapter->getEventManager()]]> - $cb - $cb + + - $cb[0] - $cb[1] + + @@ -1228,105 +1328,108 @@ adapter->getEventManager()]]> - setMethods + - $cb - $cb + + - $cb[0] - $cb[1] + + - optimizeByFactor + - $events - $events - $events + + + adapter->getEventManager()]]> - $cb - $cb + + - $cb[0] - $cb[1] + + - $casToken - $casToken - $casToken - $success - $success - $success + + + + + + - $values + - $values + - onDecrementItemPre - onReadItemPost - onReadItemPost - onReadItemsPost + + + + - testShareByDefaultAndSharedByDefault + - clearExpired + - ClearExpiredMockAdapter + - internalGetItem - internalRemoveItem - internalSetItem + + + - MockAdapter + + + + - getEventCallbacks - onSetItemPost - onSetItemPre + + + - $handles + - $options + - $options instanceof Plugin\PluginOptions + - optimize + - OptimizableMockAdapter +