Skip to content

Commit 8084948

Browse files
committed
Generic/LowerCaseType: minor tweak to a unit test
... to verify and safeguard that spacing within a type cast is not touched by the sniff.
1 parent 9662f43 commit 8084948

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $foo = (Int) $bar;
1515
$foo = (INTEGER) $bar;
1616
$foo = (BOOL) $bar;
1717
$foo = (String) $bar;
18-
$foo = (Array) $bar;
18+
$foo = ( Array ) $bar;
1919

2020
function foo(int $a, string $b, bool $c, array $d, Foo\Bar $e) : int {}
2121
function foo(Int $a, String $b, BOOL $c, Array $d, Foo\Bar $e) : Foo\Bar {}

src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $foo = (int) $bar;
1515
$foo = (integer) $bar;
1616
$foo = (bool) $bar;
1717
$foo = (string) $bar;
18-
$foo = (array) $bar;
18+
$foo = ( array ) $bar;
1919

2020
function foo(int $a, string $b, bool $c, array $d, Foo\Bar $e) : int {}
2121
function foo(int $a, string $b, bool $c, array $d, Foo\Bar $e) : Foo\Bar {}

0 commit comments

Comments
 (0)