Skip to content

Commit e1fc834

Browse files
committed
update phpcs to exclude tested contexts
Signed-off-by: iifawzi <iifawzie@gmail.com>
1 parent 34a9a54 commit e1fc834

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
<rule ref="Squiz.Arrays.ArrayDeclaration.IndexNoNewline">
3131
<exclude-pattern>src/Contexts/*</exclude-pattern>
32+
<exclude-pattern>tests/Tools/templates/*</exclude-pattern>
3233
</rule>
3334

3435
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">

tests/Tools/ContextGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testReadWords(): void
4242
$this->assertEquals([
4343
Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_RESERVED => [
4444
8 => ['RESERVED'],
45-
9 => ['RESERVED2','RESERVED3','RESERVED4','RESERVED5','RESERVED6','RESERVED7','RESERVED8','RESERVED9',]
45+
9 => ['RESERVED2','RESERVED3','RESERVED4','RESERVED5'],
4646
],
4747
Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_FUNCTION => [8 => ['FUNCTION']],
4848
Token::TYPE_KEYWORD | Token::FLAG_KEYWORD_DATA_TYPE => [8 => ['DATATYPE']],

0 commit comments

Comments
 (0)