Skip to content

Commit b24b483

Browse files
committed
[Rector] Apply Rector: FixClassCaseSensitivityNameRector
1 parent 3d6b3bd commit b24b483

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Rector\CodeQuality\Rector\If_\ShortenElseIfRector;
2121
use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector;
2222
use Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector;
23+
use Rector\CodeQuality\Rector\Name\FixClassCaseSensitivityNameRector;
2324
use Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector;
2425
use Rector\CodeQuality\Rector\Ternary\UnnecessaryTernaryExpressionRector;
2526
use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector;
@@ -135,4 +136,5 @@
135136
$services->set(RemoveExtraParametersRector::class);
136137
$services->set(FuncGetArgsToVariadicParamRector::class);
137138
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
139+
$services->set(FixClassCaseSensitivityNameRector::class);
138140
};

tests/system/Cache/Handlers/PredisHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ public function testNew()
6262

6363
public function testDestruct()
6464
{
65-
$this->PredisHandler = new PRedisHandler($this->config);
65+
$this->PredisHandler = new PredisHandler($this->config);
6666
$this->PredisHandler->initialize();
6767

68-
$this->assertInstanceOf(PRedisHandler::class, $this->PredisHandler);
68+
$this->assertInstanceOf(PredisHandler::class, $this->PredisHandler);
6969
}
7070

7171
/**

tests/system/Config/DotEnvTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function testLoadsUnreadableFile()
123123

124124
public function testQuotedDotenvLoadsEnvironmentVars()
125125
{
126-
$dotenv = new Dotenv($this->fixturesFolder, 'quoted.env');
126+
$dotenv = new DotEnv($this->fixturesFolder, 'quoted.env');
127127
$dotenv->load();
128128
$this->assertSame('bar', getenv('QFOO'));
129129
$this->assertSame('baz', getenv('QBAR'));
@@ -138,13 +138,13 @@ public function testSpacedValuesWithoutQuotesThrowsException()
138138
$this->expectException('InvalidArgumentException');
139139
$this->expectExceptionMessage('.env values containing spaces must be surrounded by quotes.');
140140

141-
$dotenv = new Dotenv($this->fixturesFolder, 'spaced-wrong.env');
141+
$dotenv = new DotEnv($this->fixturesFolder, 'spaced-wrong.env');
142142
$dotenv->load();
143143
}
144144

145145
public function testLoadsServerGlobals()
146146
{
147-
$dotenv = new Dotenv($this->fixturesFolder, '.env');
147+
$dotenv = new DotEnv($this->fixturesFolder, '.env');
148148
$dotenv->load();
149149

150150
$this->assertSame('bar', $_SERVER['FOO']);
@@ -155,7 +155,7 @@ public function testLoadsServerGlobals()
155155

156156
public function testNamespacedVariables()
157157
{
158-
$dotenv = new Dotenv($this->fixturesFolder, '.env');
158+
$dotenv = new DotEnv($this->fixturesFolder, '.env');
159159
$dotenv->load();
160160

161161
$this->assertSame('complex', $_SERVER['SimpleConfig.simple.name']);
@@ -164,15 +164,15 @@ public function testNamespacedVariables()
164164
public function testLoadsGetServerVar()
165165
{
166166
$_SERVER['SER_VAR'] = 'TT';
167-
$dotenv = new Dotenv($this->fixturesFolder, 'nested.env');
167+
$dotenv = new DotEnv($this->fixturesFolder, 'nested.env');
168168
$dotenv->load();
169169

170170
$this->assertSame('TT', $_ENV['NVAR7']);
171171
}
172172

173173
public function testLoadsEnvGlobals()
174174
{
175-
$dotenv = new Dotenv($this->fixturesFolder);
175+
$dotenv = new DotEnv($this->fixturesFolder);
176176
$dotenv->load();
177177
$this->assertSame('bar', $_ENV['FOO']);
178178
$this->assertSame('baz', $_ENV['BAR']);
@@ -182,7 +182,7 @@ public function testLoadsEnvGlobals()
182182

183183
public function testNestedEnvironmentVars()
184184
{
185-
$dotenv = new Dotenv($this->fixturesFolder, 'nested.env');
185+
$dotenv = new DotEnv($this->fixturesFolder, 'nested.env');
186186
$dotenv->load();
187187
$this->assertSame('{$NVAR1} {$NVAR2}', $_ENV['NVAR3']); // not resolved
188188
$this->assertSame('Hello World!', $_ENV['NVAR4']);
@@ -192,7 +192,7 @@ public function testNestedEnvironmentVars()
192192

193193
public function testDotenvAllowsSpecialCharacters()
194194
{
195-
$dotenv = new Dotenv($this->fixturesFolder, 'specialchars.env');
195+
$dotenv = new DotEnv($this->fixturesFolder, 'specialchars.env');
196196
$dotenv->load();
197197
$this->assertSame('$a6^C7k%zs+e^.jvjXk', getenv('SPVAR1'));
198198
$this->assertSame('?BUty3koaV3%GA*hMAwH}B', getenv('SPVAR2'));

0 commit comments

Comments
 (0)