PHPStan Level 4

This commit is contained in:
Adrien Loison committed 2022-01-23 15:21:49 +01:00
1 parent ea0a67d283
commit 6f1b67b39d
23 files changed
+32 -43

No files matched your search

@@ -84,7 +84,7 @@ class CachingStrategyFactory
$memoryAvailable = $this->getMemoryLimitInKB();
if ($memoryAvailable === -1) {
if ((int) $memoryAvailable === -1) {
// if cannot get memory limit or if memory limit set as unlimited, don't trust and play safe
$isInMemoryStrategyUsageSafe = ($sharedStringsUniqueCount < self::MAX_NUM_STRINGS_PER_TEMP_FILE);
} else {