From c45210b1c43d2d24e263eefe72e8162754dd4c9f Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 14 Dec 2022 15:42:16 +0100 Subject: [PATCH] Migrate to `static` data providers using `rector/rector` --- Tests/DotenvTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/DotenvTest.php b/Tests/DotenvTest.php index 47c9bfb..2089e4b 100644 --- a/Tests/DotenvTest.php +++ b/Tests/DotenvTest.php @@ -33,7 +33,7 @@ public function testParseWithFormatError($data, $error) } } - public function getEnvDataWithFormatErrors() + public static function getEnvDataWithFormatErrors() { $tests = [ ['FOO=BAR BAZ', "A value containing spaces must be surrounded by quotes in \".env\" at line 1.\n...FOO=BAR BAZ...\n ^ line 1 offset 11"], @@ -71,7 +71,7 @@ public function testParse($data, $expected) $this->assertSame($expected, $dotenv->parse($data)); } - public function getEnvData() + public static function getEnvData() { putenv('LOCAL=local'); $_ENV['LOCAL'] = 'local';