diff --git a/tests/system/HTTP/MessageTest.php b/tests/system/HTTP/MessageTest.php index 3c45471d4b81..5e3343416b12 100644 --- a/tests/system/HTTP/MessageTest.php +++ b/tests/system/HTTP/MessageTest.php @@ -25,7 +25,7 @@ #[Group('Others')] final class MessageTest extends CIUnitTestCase { - private ?Message $message; + private Message $message; protected function setUp(): void { diff --git a/tests/system/HTTP/NegotiateTest.php b/tests/system/HTTP/NegotiateTest.php index a2731ec5ddbf..e52f6f7a3201 100644 --- a/tests/system/HTTP/NegotiateTest.php +++ b/tests/system/HTTP/NegotiateTest.php @@ -25,8 +25,8 @@ #[Group('Others')] final class NegotiateTest extends CIUnitTestCase { - private ?IncomingRequest $request; - private ?Negotiate $negotiate; + private IncomingRequest $request; + private Negotiate $negotiate; protected function setUp(): void { diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index e621c1616cf5..c251023ac4e2 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -1,4 +1,4 @@ -# total 3608 errors +# total 3605 errors includes: - argument.type.neon - assign.propertyType.neon @@ -34,7 +34,6 @@ includes: - property.protected.neon - property.readOnlyByPhpDocAssignOutOfClass.neon - property.readOnlyByPhpDocDefaultValue.neon - - property.unusedType.neon - staticMethod.notFound.neon - ternary.shortNotAllowed.neon - varTag.type.neon diff --git a/utils/phpstan-baseline/property.unusedType.neon b/utils/phpstan-baseline/property.unusedType.neon deleted file mode 100644 index 184b45953855..000000000000 --- a/utils/phpstan-baseline/property.unusedType.neon +++ /dev/null @@ -1,18 +0,0 @@ -# total 3 errors - -parameters: - ignoreErrors: - - - message: '#^Property CodeIgniter\\HTTP\\MessageTest\:\:\$message \(CodeIgniter\\HTTP\\Message\|null\) is never assigned null so it can be removed from the property type\.$#' - count: 1 - path: ../../tests/system/HTTP/MessageTest.php - - - - message: '#^Property CodeIgniter\\HTTP\\NegotiateTest\:\:\$negotiate \(CodeIgniter\\HTTP\\Negotiate\|null\) is never assigned null so it can be removed from the property type\.$#' - count: 1 - path: ../../tests/system/HTTP/NegotiateTest.php - - - - message: '#^Property CodeIgniter\\HTTP\\NegotiateTest\:\:\$request \(CodeIgniter\\HTTP\\IncomingRequest\|null\) is never assigned null so it can be removed from the property type\.$#' - count: 1 - path: ../../tests/system/HTTP/NegotiateTest.php