Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Libero/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing"/>
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators"/>
<rule ref="SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator"/>
<rule ref="SlevomatCodingStandard.Operators.SpreadOperatorSpacing"/>
<rule ref="SlevomatCodingStandard.PHP.ShortList"/>
<rule ref="SlevomatCodingStandard.PHP.TypeCast"/>
<rule ref="SlevomatCodingStandard.PHP.UselessParentheses">
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/classes/method-declaration
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
}
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/closures/declaration
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
};
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/functions/declaration
Original file line number Diff line number Diff line change
Expand Up @@ -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 ):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, there isn't a dedicated fixture because these are already dedicated to whitespace

void
{
}
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/trait/method-declaration
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
}
Expand Down
8 changes: 6 additions & 2 deletions tests/cases/whitespace/function-call
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ foo ( $arg1 );

foo
($arg1
,$arg2);
,... $arg2);

foo ($arg1,... $arg2);

---FIXED---
<?php
Expand All @@ -20,7 +22,9 @@ foo($arg1);

foo(
$arg1,
$arg2
...$arg2
);

foo($arg1, ...$arg2);

---