From 27d7432bb9d0b421f7e4dadeb38594c4935f0761 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 22 Nov 2023 15:31:19 +0100 Subject: [PATCH] Fix --- .psalm/config.xml | 2 +- src/Framework/MockObject/Generator/Generator.php | 1 + src/Logging/TestDox/TestMethod/TestResultCollector.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.psalm/config.xml b/.psalm/config.xml index 1afb8a9d293..4d122d9e03b 100644 --- a/.psalm/config.xml +++ b/.psalm/config.xml @@ -9,7 +9,7 @@ findUnusedVariablesAndParams="false" findUnusedCode="false" errorBaseline=".psalm/baseline.xml" - findUnusedBaselineEntry="true" + findUnusedBaselineEntry="false" > diff --git a/src/Framework/MockObject/Generator/Generator.php b/src/Framework/MockObject/Generator/Generator.php index 0cc671c25f8..ac304e60b14 100644 --- a/src/Framework/MockObject/Generator/Generator.php +++ b/src/Framework/MockObject/Generator/Generator.php @@ -444,6 +444,7 @@ public function generateClassFromWsdl(string $wsdlFile, string $className, array try { $client = new SoapClient($wsdlFile, $options); + /** @psalm-suppress PossiblyNullArgument */ $_methods = array_unique($client->__getFunctions()); unset($client); diff --git a/src/Logging/TestDox/TestMethod/TestResultCollector.php b/src/Logging/TestDox/TestMethod/TestResultCollector.php index cba5ef21509..2baeab1b22a 100644 --- a/src/Logging/TestDox/TestMethod/TestResultCollector.php +++ b/src/Logging/TestDox/TestMethod/TestResultCollector.php @@ -200,6 +200,7 @@ public function testCreatedTestDouble(MockObjectCreated|MockObjectForAbstractCla } if ($event instanceof MockObjectFromWsdlCreated) { + /** @psalm-suppress PropertyTypeCoercion */ $this->testDoubles[] = SoapClient::class; return;