diff --git a/tests/system/Config/DotEnvTest.php b/tests/system/Config/DotEnvTest.php index 97bf2e3dd026..4507c8a3e8bf 100644 --- a/tests/system/Config/DotEnvTest.php +++ b/tests/system/Config/DotEnvTest.php @@ -22,7 +22,6 @@ use PHPUnit\Framework\Attributes\PreserveGlobalState; use PHPUnit\Framework\Attributes\RunInSeparateProcess; use PHPUnit\Framework\Attributes\WithoutErrorHandler; -use TypeError; /** * @internal @@ -115,13 +114,6 @@ public function testLoadsBase64(): void $this->assertSame('OpenSSL', getenv('encryption.driver')); } - public function testLoadsNoneStringFiles(): void - { - $this->expectException(TypeError::class); - - new DotEnv($this->fixturesFolder, 2); - } - public function testCommentedLoadsVars(): void { $dotenv = new DotEnv($this->fixturesFolder, 'commented.env'); diff --git a/utils/phpstan-baseline/argument.type.neon b/utils/phpstan-baseline/argument.type.neon index 241be0a6bfd8..eb6ca99573e5 100644 --- a/utils/phpstan-baseline/argument.type.neon +++ b/utils/phpstan-baseline/argument.type.neon @@ -1,4 +1,4 @@ -# total 88 errors +# total 87 errors parameters: ignoreErrors: @@ -52,11 +52,6 @@ parameters: count: 4 path: ../../tests/system/Commands/RoutesTest.php - - - message: '#^Parameter \#2 \$file of class CodeIgniter\\Config\\DotEnv constructor expects string, int given\.$#' - count: 1 - path: ../../tests/system/Config/DotEnvTest.php - - message: '#^Parameter \#1 \$expected of method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) expects class\-string\, string given\.$#' count: 1 diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index a92562caf39d..08c8f5c3fcef 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -1,4 +1,4 @@ -# total 2837 errors +# total 2836 errors includes: - argument.type.neon - assign.propertyType.neon