diff --git a/src/Libero/ruleset.xml b/src/Libero/ruleset.xml index 3c657d5..800ee90 100644 --- a/src/Libero/ruleset.xml +++ b/src/Libero/ruleset.xml @@ -85,6 +85,7 @@ + diff --git a/tests/cases/classes/method-declaration b/tests/cases/classes/method-declaration index cc68b91..d0d67cc 100644 --- a/tests/cases/classes/method-declaration +++ b/tests/cases/classes/method-declaration @@ -11,7 +11,7 @@ namespace Vendor; class Foo { - public function bar ( $baz ,&$qux, bool$quux, ? string $quuz =null , string...$corge ): + public function bar ( $baz ,&$qux, bool$quux, ? string $quuz =null , string... $corge ): void { } diff --git a/tests/cases/closures/declaration b/tests/cases/closures/declaration index f355a87..7294f69 100644 --- a/tests/cases/closures/declaration +++ b/tests/cases/closures/declaration @@ -7,7 +7,7 @@ declare(strict_types=1); namespace Vendor; -$foo = function ( $bar ,&$baz, bool$qux, ? string $quux =null , string...$quuz )use ( &$foo) : +$foo = function ( $bar ,&$baz, bool$qux, ? string $quux =null , string... $quuz )use ( &$foo) : void { }; diff --git a/tests/cases/functions/declaration b/tests/cases/functions/declaration index e3882e4..6fe7902 100644 --- a/tests/cases/functions/declaration +++ b/tests/cases/functions/declaration @@ -7,7 +7,7 @@ declare(strict_types=1); namespace Vendor; -function foo ( $bar ,&$baz, bool$qux, ? string $quux =null , string...$quuz ): +function foo ( $bar ,&$baz, bool$qux, ? string $quux =null , string... $quuz ): void { } diff --git a/tests/cases/trait/method-declaration b/tests/cases/trait/method-declaration index dc6b1e9..6e4067c 100644 --- a/tests/cases/trait/method-declaration +++ b/tests/cases/trait/method-declaration @@ -11,7 +11,7 @@ namespace Vendor; trait Foo { - public function bar ( $baz ,&$qux, bool$quux, ? string $quuz =null , string...$corge ): + public function bar ( $baz ,&$qux, bool$quux, ? string $quuz =null , string... $corge ): void { } diff --git a/tests/cases/whitespace/function-call b/tests/cases/whitespace/function-call index b457c56..e25ac79 100644 --- a/tests/cases/whitespace/function-call +++ b/tests/cases/whitespace/function-call @@ -9,7 +9,9 @@ foo ( $arg1 ); foo ($arg1 -,$arg2); +,... $arg2); + +foo ($arg1,... $arg2); ---FIXED---