Skip to content

Commit 9017efe

Browse files
authored
Merge pull request #106 from lcobucci/apply-fixes-on-5.x
Apply fixes on 5.x
2 parents f7711b2 + 2d7e211 commit 9017efe

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"require": {
2929
"php": "^7.1",
30-
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
30+
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
3131
"slevomat/coding-standard": "^4.8.0",
3232
"squizlabs/php_codesniffer": "^3.3.2"
3333
},

lib/Doctrine/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@
369369
<exclude name="Squiz.Arrays.ArrayDeclaration.ValueNotAligned"/>
370370
<!-- Checked by SlevomatCodingStandard.Arrays.TrailingArrayComma.MissingTrailingComma -->
371371
<exclude name="Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast"/>
372+
<exclude name="Squiz.Arrays.ArrayDeclaration.NoComma"/>
372373
</rule>
373374
<!-- Forbid class being in a file with different name -->
374375
<rule ref="Squiz.Classes.ClassFileName"/>

tests/expected_report.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ tests/input/return_type_on_closures.php 21 0
2323
tests/input/return_type_on_methods.php 17 0
2424
tests/input/semicolon_spacing.php 3 0
2525
tests/input/static-closures.php 1 0
26-
tests/input/test-case.php 6 0
26+
tests/input/test-case.php 8 0
27+
tests/input/trailing_comma_on_array.php 1 0
2728
tests/input/traits-uses.php 10 0
2829
tests/input/UnusedVariables.php 1 0
2930
tests/input/useless-semicolon.php 2 0
3031
----------------------------------------------------------------------
31-
A TOTAL OF 203 ERRORS AND 0 WARNINGS WERE FOUND IN 24 FILES
32+
A TOTAL OF 206 ERRORS AND 0 WARNINGS WERE FOUND IN 25 FILES
3233
----------------------------------------------------------------------
33-
PHPCBF CAN FIX 173 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
34+
PHPCBF CAN FIX 176 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
3435
----------------------------------------------------------------------
3536

3637

tests/fixed/test-case.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ public function createDependencies() : void
2727
}
2828

2929
/**
30-
* @test
30+
* @uses MyClass::__construct
3131
*
32+
* @test
3233
* @covers MyClass::test
33-
*
34-
* @uses MyClass::__construct
3534
*/
3635
public function methodShouldDoStuff() : void
3736
{
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$array = [
6+
'key1' => 'value',
7+
'key2' => 'value',
8+
];
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$array = [
6+
'key1' => 'value',
7+
'key2' => 'value'
8+
];

0 commit comments

Comments
 (0)