From 85fa88a6c7f0f297413d0860c60892d8823594ce Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 13 Dec 2022 19:46:43 +0100 Subject: [PATCH] Regenerated psalm baseline off newly introduced type improvements --- psalm-baseline.xml | 482 ++++++++++----------------------------------- 1 file changed, 108 insertions(+), 374 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index a0a1ca24..6c6b7313 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + $label @@ -18,18 +18,6 @@ - - $files - - - $file - $file - $file - $file - - - $file - AbstractFileCheck @@ -42,10 +30,6 @@ AbstractMemoryCheck - - (int) $criticalThreshold - (int) $warningThreshold - @@ -83,10 +67,6 @@ ApcFragmentation - - (int) $criticalThreshold - (int) $warningThreshold - $nseg $nseg @@ -119,22 +99,6 @@ - - $classNames - - - $class - - - $missing - - - $class - $missing[] - - - current($missing) - ClassExists @@ -159,10 +123,7 @@ - - string - - + $a $a $a @@ -171,8 +132,6 @@ $p $t $t - 1 - 2 2 2 2 @@ -183,14 +142,11 @@ null null - - bcdiv(bcpow(bcadd($a, $b), 2), bcmul(4, $t), $precision) - $b $b $b - $x + bcsqrt(2) CpuPerformance @@ -200,69 +156,24 @@ - - $this->dir - - - $path - - - $dir - $dir - - - $nonDirs - $unreadable - - - $dir - $nonDirs[] - $unreadable[] - - - current($nonDirs) - current($unreadable) - DirReadable - - $this->dir - - - $path - - - $dir - $dir - current($nonDirs) - current($unwritable) - - - $nonDirs - $unwritable - - - $dir - $nonDirs[] - $unwritable[] - DirWritable - + is_scalar($size) - is_string($path) $bytes - $free + $size $a @@ -273,6 +184,13 @@ $this->path + + $x[$i] + + + $x[$i] + $x[$i] + $bytes $bytes @@ -289,18 +207,15 @@ $bytes - - $a - $a + $k $k DiskFree - + ! is_float($free) - $free === false || ! is_float($free) $this->path @@ -308,20 +223,34 @@ $this->path + + $a + $a + $x + + + $a + $a + $a + $a + $a + $a + $x + $x + $x + $x + $x + $x + - + is_numeric($criticalThreshold) is_numeric($warningThreshold) - is_string($path) DiskUsage - - (int) $criticalThreshold - (int) $warningThreshold - @@ -341,42 +270,9 @@ - - $this->extensions - - - $extensionName - - - $ext - $ext - $ext - $ext - - - $missing - $missing - $this->extensions - - - $versions[$ext] - - - $ext - $ext - $ext - $missing[] - - - $ext - $ext - ExtensionLoaded - - $this->extensions - @@ -405,9 +301,8 @@ $guzzle - + (int) $response->getStatusCode() - (int) $statusCode bool|FailureInterface @@ -440,9 +335,8 @@ is_string($host) - + $memcache - $stats addServer @@ -460,9 +354,8 @@ is_string($host) - + $memcached - $stats addServer @@ -519,55 +412,14 @@ - - is_array($settingName) - is_scalar($expectedValue) - - - $name - - - $failures - $this->settings - - - $failures[] - $name - - - $failures[0] - $this->settings[0] - PhpFlag - - (bool) $expectedValue - $this->operator - - is_array($expectedVersion) - is_scalar($operator) - - - $this->version - - - $expectedVersion - $expectedVersion - [$expectedVersion] - - - $version - $version - - - $version - PhpVersion @@ -602,14 +454,35 @@ + + $client + + + PredisClient|RedisExtensionClient + + + auth + connect + + + $client + Redis + + RedisException + + + $client + PredisClient|RedisExtensionClient + RedisException + + + array + - - is_scalar($lockFilePath) - $advisories @@ -622,24 +495,12 @@ - - $wrappers - $v - + $v - current($missingWrappers) - - $missingWrappers - $this->wrappers - - - $class - $missingWrappers[] - StreamWrapperExists @@ -670,11 +531,6 @@ updateCounters - - $checkResult - parent::offsetGet($index) - parent::offsetGet($index) - $checkResult @@ -692,25 +548,6 @@ consoleWrite consoleWriteLn - - $message - $result - - - $message - $result - - - getLabel - getLabel - getLabel - getMessage - - - $check->getLabel() - $check->getLabel() - $check->getLabel() - $countLength $gutter @@ -726,12 +563,6 @@ [$this, 'errorHandler'] - - $this->reporters - - - array - addCheck addChecks @@ -742,46 +573,28 @@ startErrorHandler stopErrorHandler - - $check - $key - - - $results[$check] - - - $alias - $check - $key + + $config + + $key - $reporter - $result $val CheckInterface - - check - - - $key - $this->checks[$alias] - - $this->reporters - $lastResults (bool) $breakOnFailure - - $this->reporters - + + is_object($result) + @@ -795,32 +608,24 @@ array - - - + $criticalThreshold $warningThreshold - + + + array - - - + $criticalThreshold $warningThreshold - + - - $alias - $alias - $alias - $alias - $alias - $alias + $alias - + $check $check @@ -833,67 +638,41 @@ - + $allExtensions $allWrappers - 'InvalidArgumentException' - 'InvalidArgumentException' - 'InvalidArgumentException' shell_exec('ps -o command= -p ' . $phpPid) - - $this->createMock(AdvisoryAnalyzer::class) - 15 - [$this, 'foobarbar'] - [] - fopen('php://memory', 'r') - new stdClass() - new stdClass() - new stdClass() - new stdClass() - new stdClass() - new stdClass() - new stdClass() + + 'like' new stdClass() - - [] - - + + $extensions $phpPid - 2 - 15 - 15 - 15 - 15 - 15 ceil(strlen($phpPid) / 2) rand() - true - - $dir1 - $dir1 - $dir1 + $dir1 $dir1 $dir1 $dir1 - $dir1 - $dir1 - $dir2 - $dir2 - $dir2 - $dir2 $dir2 $dir2 $dir2 $dir2 $name - $name + + $allFalse + $allFalse + $name + $notAllFalse + $notAllFalse + $valueArray['local_value'] $valueArray['local_value'] @@ -904,21 +683,14 @@ $valueArray $valueArray - - $dir1 - $dir1 + $dir1 $dir2 - $dir2 - - $notAllFalse - - - $dir1 - $dir1 - $dir1 - $dir1 + + $name + + $dir1 $dir1 $dir1 @@ -931,21 +703,12 @@ $dir2 $dir2 $dir2 - $dir2 - $dir2 - $dir2 - $dir2 - $dir2 - $dir2 - $dir2 $name - - new SecurityAdvisory($this->createMock(AdvisoryAnalyzer::class), new stdClass()) - - + + $arguments $this->checkClass @@ -956,15 +719,6 @@ $c - - [] - - - $freeRightNow - $freeRightNow * 0.5 - $freeRightNow + 1073741824 - 100 - array array @@ -972,19 +726,13 @@ - - $criticalThreshold - $dp + 1 - $dp + 2 - $dp - 1 - $dp - 1 - $warningThreshold - array - + + $criticalThreshold $path + $warningThreshold $path @@ -1006,11 +754,6 @@ Generator - - - $extensionName - - $resultClass @@ -1018,9 +761,6 @@ 'not guzzle' - - '200' - $request $request @@ -1054,22 +794,18 @@ ['127.0.0.1'] - - - $criticalThreshold - $warningThreshold - - 'Iterator' 'Traversable' - + $key $key $key $key + $key + $value $this->collection[$key] @@ -1088,19 +824,16 @@ $expectedResult - + 'foo' - 10 array - - getSeverity + getSeverity - - getSeverity + getSeverity @@ -1132,7 +865,8 @@ - + + strpos() strpos()