Skip to content

Commit

Permalink
Fix psalm and php-cs-fixer (#1174)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jun 1, 2023
1 parent 62f0b80 commit 8d44b00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Expand Up @@ -42,6 +42,7 @@
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'no_useless_else' => true,
'no_useless_return' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true, 'remove_inheritdoc' => true],
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true],
'ordered_class_elements' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['class', 'function', 'const']],
Expand Down
6 changes: 6 additions & 0 deletions tests/Resources/XliffValidatorTestCase.php
Expand Up @@ -36,6 +36,8 @@ protected function setUp(): void

/**
* @dataProvider getXliffPaths
*
* @phpstan-param non-empty-string $path
*/
public function testXliff(string $path): void
{
Expand All @@ -54,6 +56,8 @@ public function testXliff(string $path): void

/**
* @return iterable<array-key, array{string}>
*
* @phpstan-return iterable<array-key, array{non-empty-string}>
*/
abstract public function getXliffPaths(): iterable;

Expand All @@ -72,6 +76,8 @@ protected function validateXliff(string $file): void

/**
* @param string $path The path to lookup for Xliff file
*
* @phpstan-param non-empty-string $path
*/
protected function validatePath(string $path): void
{
Expand Down

0 comments on commit 8d44b00

Please sign in to comment.