From 808494801d54932f88ec1cb053677e51aeb8a4b6 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 9 Jul 2020 01:32:09 +0200 Subject: [PATCH] Generic/LowerCaseType: minor tweak to a unit test ... to verify and safeguard that spacing within a type cast is not touched by the sniff. --- src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc | 2 +- src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc b/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc index f4e0dd4628..aae4c720a8 100644 --- a/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc +++ b/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc @@ -15,7 +15,7 @@ $foo = (Int) $bar; $foo = (INTEGER) $bar; $foo = (BOOL) $bar; $foo = (String) $bar; -$foo = (Array) $bar; +$foo = ( Array ) $bar; function foo(int $a, string $b, bool $c, array $d, Foo\Bar $e) : int {} function foo(Int $a, String $b, BOOL $c, Array $d, Foo\Bar $e) : Foo\Bar {} diff --git a/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed b/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed index a64a4400d7..42704d8cd5 100644 --- a/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed +++ b/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.inc.fixed @@ -15,7 +15,7 @@ $foo = (int) $bar; $foo = (integer) $bar; $foo = (bool) $bar; $foo = (string) $bar; -$foo = (array) $bar; +$foo = ( array ) $bar; function foo(int $a, string $b, bool $c, array $d, Foo\Bar $e) : int {} function foo(int $a, string $b, bool $c, array $d, Foo\Bar $e) : Foo\Bar {}