fix phpstan/phpcs

This commit is contained in:
Dennis Eichhorn 2021-06-26 14:38:08 +02:00
parent 4387e28fef
commit 54e073779a
3 changed files with 4 additions and 8 deletions

View File

@ -134,7 +134,7 @@ final class Importer extends ImporterAbstract
$supportedLanguages = \array_slice($header, 4);
$keyLengths = [];
while(($line = \fgetcsv($fp, 0, ';', '"')) !== false) {
while (($line = \fgetcsv($fp, 0, ';', '"')) !== false) {
$translations = \array_slice($line, 4);
$line[0] = \trim($line[0]);

View File

@ -67,9 +67,7 @@ class ExchangeLog implements \JsonSerializable, ArrayableInterface
* @var int
* @since 1.0.0
*/
public int |
InterfaceManager $exchange = 0;
public int|InterfaceManager $exchange = 0;
/**
* Date type.
@ -79,9 +77,7 @@ InterfaceManager $exchange = 0;
*/
public \DateTimeImmutable $createdAt;
public int |
Account $createdBy = 0;
public int|Account $createdBy = 0;
/**
* Constructor.

View File

@ -9,7 +9,7 @@
],
"require-dev": {
"phpunit/phpunit": ">=9.4",
"friendsofphp/php-cs-fixer": ">=2.18",
"friendsofphp/php-cs-fixer": ">=3.0",
"squizlabs/php_codesniffer": ">=3.5",
"phpmd/phpmd": ">=2.9",
"phpstan/phpstan": ">=0.12.58",