Skip to content

Commit 2a92464

Browse files
committed
Php Inspections (EA Extended): - resolved possible PHP Fatal in \Symfony\Component\BrowserKit\Cookie::__toString -resolved implicit magic methods calls -resolved callable name case mismatches
1 parent bb35442 commit 2a92464

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Extension/Core/DataTransformer/DateTimeToStringTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function reverseTransform($value)
219219
}
220220

221221
if ($this->inputTimezone !== $this->outputTimezone) {
222-
$dateTime->setTimeZone(new \DateTimeZone($this->inputTimezone));
222+
$dateTime->setTimezone(new \DateTimeZone($this->inputTimezone));
223223
}
224224
} catch (TransformationFailedException $e) {
225225
throw $e;

Tests/AbstractLayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function assertMatchesXpath($html, $expression, $count = 1)
6060
try {
6161
// Wrap in <root> node so we can load HTML with multiple tags at
6262
// the top level
63-
$dom->loadXml('<root>'.$html.'</root>');
63+
$dom->loadXML('<root>'.$html.'</root>');
6464
} catch (\Exception $e) {
6565
$this->fail(sprintf(
6666
"Failed loading HTML:\n\n%s\n\nError: %s",

Tests/Extension/Core/DataTransformer/DateTimeToStringTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function testReverseTransformWithDifferentTimezones()
147147

148148
$output = new \DateTime('2010-02-03 16:05:06 Asia/Hong_Kong');
149149
$input = $output->format('Y-m-d H:i:s');
150-
$output->setTimeZone(new \DateTimeZone('America/New_York'));
150+
$output->setTimezone(new \DateTimeZone('America/New_York'));
151151

152152
$this->assertDateTimeEquals($output, $reverseTransformer->reverseTransform($input));
153153
}

0 commit comments

Comments
 (0)