From 008832fd2a327453d88a7a5b723e46d73ffbace2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 08:23:19 +0000 Subject: [PATCH 1/3] Bump the upgrade-batch group with 6 updates Bumps the upgrade-batch group with 6 updates: | Package | From | To | | --- | --- | --- | | [symplify/easy-coding-standard](https://github.com/ecsphp/ecs) | `13.2.3` | `13.2.17` | | [rector/rector](https://github.com/rectorphp/rector) | `2.5.2` | `2.5.8` | | [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) | `2.2.3` | `2.2.7` | | [phpstan/phpstan-strict-rules](https://github.com/phpstan/phpstan-strict-rules) | `2.0.11` | `2.0.12` | | [spaze/phpstan-disallowed-calls](https://github.com/spaze/phpstan-disallowed-calls) | `4.12.0` | `4.13.0` | | [phpstan/phpstan-phpunit](https://github.com/phpstan/phpstan-phpunit) | `2.0.17` | `2.0.18` | Updates `symplify/easy-coding-standard` from 13.2.3 to 13.2.17 - [Release notes](https://github.com/ecsphp/ecs/releases) - [Commits](https://github.com/ecsphp/ecs/compare/13.2.3...13.2.17) Updates `rector/rector` from 2.5.2 to 2.5.8 - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/2.5.2...2.5.8) Updates `phpstan/phpstan` from 2.2.3 to 2.2.7 - [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits) Updates `phpstan/phpstan-strict-rules` from 2.0.11 to 2.0.12 - [Release notes](https://github.com/phpstan/phpstan-strict-rules/releases) - [Commits](https://github.com/phpstan/phpstan-strict-rules/compare/2.0.11...2.0.12) Updates `spaze/phpstan-disallowed-calls` from 4.12.0 to 4.13.0 - [Release notes](https://github.com/spaze/phpstan-disallowed-calls/releases) - [Commits](https://github.com/spaze/phpstan-disallowed-calls/compare/v4.12.0...v4.13.0) Updates `phpstan/phpstan-phpunit` from 2.0.17 to 2.0.18 - [Release notes](https://github.com/phpstan/phpstan-phpunit/releases) - [Commits](https://github.com/phpstan/phpstan-phpunit/compare/2.0.17...2.0.18) --- updated-dependencies: - dependency-name: symplify/easy-coding-standard dependency-version: 13.2.17 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: upgrade-batch - dependency-name: rector/rector dependency-version: 2.5.8 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: upgrade-batch - dependency-name: phpstan/phpstan dependency-version: 2.2.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: upgrade-batch - dependency-name: phpstan/phpstan-strict-rules dependency-version: 2.0.12 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: upgrade-batch - dependency-name: spaze/phpstan-disallowed-calls dependency-version: 4.13.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: upgrade-batch - dependency-name: phpstan/phpstan-phpunit dependency-version: 2.0.18 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: upgrade-batch ... Signed-off-by: dependabot[bot] --- composer.lock | 79 ++++++++++++++++++++++++++------------------------- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/composer.lock b/composer.lock index 1a1c8c8..3fbeb33 100644 --- a/composer.lock +++ b/composer.lock @@ -245,11 +245,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.2.3", + "version": "2.2.7", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/4048833dd47b377287818841877fb3087289509c", - "reference": "4048833dd47b377287818841877fb3087289509c", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/692db47b9dddb0487934e5236e77d48594aef921", + "reference": "692db47b9dddb0487934e5236e77d48594aef921", "shasum": "" }, "require": { @@ -305,20 +305,20 @@ "type": "github" } ], - "time": "2026-06-30T21:15:26+00:00" + "time": "2026-07-29T17:39:32+00:00" }, { "name": "phpstan/phpstan-phpunit", - "version": "2.0.17", + "version": "2.0.18", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "c2f977551f0736d60467b3d754b2e0cf4e337b3f" + "reference": "f5dc20ff8082d02339b60cab68ec3eb0d859fb30" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/c2f977551f0736d60467b3d754b2e0cf4e337b3f", - "reference": "c2f977551f0736d60467b3d754b2e0cf4e337b3f", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/f5dc20ff8082d02339b60cab68ec3eb0d859fb30", + "reference": "f5dc20ff8082d02339b60cab68ec3eb0d859fb30", "shasum": "" }, "require": { @@ -361,33 +361,34 @@ ], "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.17" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.18" }, - "time": "2026-06-29T05:32:23+00:00" + "time": "2026-07-04T12:16:09+00:00" }, { "name": "phpstan/phpstan-strict-rules", - "version": "2.0.11", + "version": "2.0.12", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "9b000a578b85b32945b358b172c7b20e91189024" + "reference": "2bc5ae19ae965663b62ac907ee6342c3903ec93b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/9b000a578b85b32945b358b172c7b20e91189024", - "reference": "9b000a578b85b32945b358b172c7b20e91189024", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/2bc5ae19ae965663b62ac907ee6342c3903ec93b", + "reference": "2bc5ae19ae965663b62ac907ee6342c3903ec93b", "shasum": "" }, "require": { "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^2.1.39" + "phpstan/phpstan": "^2.1.52" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^9.6", + "shipmonk/name-collision-detector": "^2.1" }, "type": "phpstan-extension", "extra": { @@ -412,9 +413,9 @@ ], "support": { "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", - "source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.11" + "source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.12" }, - "time": "2026-05-02T06:54:10+00:00" + "time": "2026-07-19T07:24:06+00:00" }, { "name": "phpunit/php-code-coverage", @@ -853,21 +854,21 @@ }, { "name": "rector/rector", - "version": "2.5.2", + "version": "2.5.8", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "49ff6339174bdbdf50b0b35ecbcff14a05ac9e24" + "reference": "861c77fd2a6d45317a401f4e0b617f947e8b6f96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/49ff6339174bdbdf50b0b35ecbcff14a05ac9e24", - "reference": "49ff6339174bdbdf50b0b35ecbcff14a05ac9e24", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/861c77fd2a6d45317a401f4e0b617f947e8b6f96", + "reference": "861c77fd2a6d45317a401f4e0b617f947e8b6f96", "shasum": "" }, "require": { "php": "^7.4|^8.0", - "phpstan/phpstan": "^2.2.2" + "phpstan/phpstan": "^2.2.6" }, "conflict": { "rector/rector-doctrine": "*", @@ -901,7 +902,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/2.5.2" + "source": "https://github.com/rectorphp/rector/tree/2.5.8" }, "funding": [ { @@ -909,7 +910,7 @@ "type": "github" } ], - "time": "2026-06-22T11:39:33+00:00" + "time": "2026-07-27T06:19:16+00:00" }, { "name": "sebastian/cli-parser", @@ -1810,16 +1811,16 @@ }, { "name": "spaze/phpstan-disallowed-calls", - "version": "v4.12.0", + "version": "v4.13.0", "source": { "type": "git", "url": "https://github.com/spaze/phpstan-disallowed-calls.git", - "reference": "5b69dc08f420b39e6c351f1cbd8e02a682c0ebdf" + "reference": "94bd44508e64f57f2a21d3d9c9f4b9ccd379ce05" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spaze/phpstan-disallowed-calls/zipball/5b69dc08f420b39e6c351f1cbd8e02a682c0ebdf", - "reference": "5b69dc08f420b39e6c351f1cbd8e02a682c0ebdf", + "url": "https://api.github.com/repos/spaze/phpstan-disallowed-calls/zipball/94bd44508e64f57f2a21d3d9c9f4b9ccd379ce05", + "reference": "94bd44508e64f57f2a21d3d9c9f4b9ccd379ce05", "shasum": "" }, "require": { @@ -1831,8 +1832,8 @@ "php-parallel-lint/php-console-highlighter": "^1.0", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/phpstan-deprecation-rules": "^1.2 || ^2.0", - "phpunit/phpunit": "^8.5.14 || ^10.1 || ^11.0 || ^12.0 || ^13.0", - "shipmonk/dead-code-detector": "^0.15.0", + "phpunit/phpunit": "^9.6 || ^10.1 || ^11.0 || ^12.0 || ^13.0", + "shipmonk/dead-code-detector": "^1.1", "spaze/coding-standard": "^1.8" }, "type": "phpstan-extension", @@ -1865,7 +1866,7 @@ ], "support": { "issues": "https://github.com/spaze/phpstan-disallowed-calls/issues", - "source": "https://github.com/spaze/phpstan-disallowed-calls/tree/v4.12.0" + "source": "https://github.com/spaze/phpstan-disallowed-calls/tree/v4.13.0" }, "funding": [ { @@ -1873,7 +1874,7 @@ "type": "github" } ], - "time": "2026-04-28T05:25:38+00:00" + "time": "2026-07-17T17:23:12+00:00" }, { "name": "staabm/side-effects-detector", @@ -1929,16 +1930,16 @@ }, { "name": "symplify/easy-coding-standard", - "version": "13.2.3", + "version": "13.2.17", "source": { "type": "git", "url": "https://github.com/ecsphp/ecs.git", - "reference": "94f56bce0420d4e837a85c4b2c6501293a5974eb" + "reference": "f5f8131520fb7d3efcf348b72205372ea619fe0e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ecsphp/ecs/zipball/94f56bce0420d4e837a85c4b2c6501293a5974eb", - "reference": "94f56bce0420d4e837a85c4b2c6501293a5974eb", + "url": "https://api.github.com/repos/ecsphp/ecs/zipball/f5f8131520fb7d3efcf348b72205372ea619fe0e", + "reference": "f5f8131520fb7d3efcf348b72205372ea619fe0e", "shasum": "" }, "require": { @@ -1973,9 +1974,9 @@ "static analysis" ], "support": { - "source": "https://github.com/ecsphp/ecs/tree/13.2.3" + "source": "https://github.com/ecsphp/ecs/tree/13.2.17" }, - "time": "2026-06-15T22:08:41+00:00" + "time": "2026-07-22T20:02:43+00:00" }, { "name": "theseer/tokenizer", From ffb7bbeb4f9110a50cd6bbd49b8828123a87f780 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 08:23:45 +0000 Subject: [PATCH 2/3] Apply CS/Rector changes --- examples/TSVtoSIE.php | 6 +++--- examples/simple.php | 3 ++- src/SIE/Data/Company.php | 9 --------- src/SIE/Data/Dimension.php | 3 +-- src/SIE/Data/FiscalYear.php | 3 ++- src/SIE/Exception/DomainException.php | 3 --- 6 files changed, 8 insertions(+), 19 deletions(-) diff --git a/examples/TSVtoSIE.php b/examples/TSVtoSIE.php index 91cae7a..1ad871a 100644 --- a/examples/TSVtoSIE.php +++ b/examples/TSVtoSIE.php @@ -198,7 +198,7 @@ public function parseTransactions(string $value, Company $company, int $skipHead if ($object === null) { $object = (new DimensionObject($data['result_unit'])) ->setDimension($dim) - ->setName('Resultatenhet ' . $data['result_unit']); //We don't have this data, so just set it + ->setName('Resultatenhet ' . $data['result_unit']); // We don't have this data, so just set it $dim->addObject($object); } @@ -219,7 +219,7 @@ public function parseTransactions(string $value, Company $company, int $skipHead if ($object === null) { $object = (new DimensionObject($data['project'])) ->setDimension($dim) - ->setName('Projekt ' . $data['project']); //We don't have this data, so just set it + ->setName('Projekt ' . $data['project']); // We don't have this data, so just set it $dim->addObject($object); } @@ -246,7 +246,7 @@ public function parseTransactions(string $value, Company $company, int $skipHead * Transaction data for current year */ -//create company +// create company $company = (new Company())->setCompanyName('Imported company name åäöÅÄÖ'); // load transaction data from TSV $loader = new TSVLoader(); diff --git a/examples/simple.php b/examples/simple.php index d955789..a4ff43a 100644 --- a/examples/simple.php +++ b/examples/simple.php @@ -51,7 +51,8 @@ ) ; // add the verification to the company -$company->getVerificationSeriesAll()[0]->addVerification($verification); +$company->getVerificationSeriesAll()[0] + ->addVerification($verification); // validate data, will throw Exception if invalid data $company->validate(); diff --git a/src/SIE/Data/Company.php b/src/SIE/Data/Company.php index a3b69df..383ce34 100644 --- a/src/SIE/Data/Company.php +++ b/src/SIE/Data/Company.php @@ -101,8 +101,6 @@ public function getTypeOfChartOfAccounts(): ?string } /** - * Add an account - * * @throws DomainException */ public function addAccount(Account $account): self @@ -139,8 +137,6 @@ public function getAccounts(): array } /** - * Add dimension - * * @throws DomainException */ public function addDimension(Dimension $dimension): self @@ -174,8 +170,6 @@ public function getDimensions(): array } /** - * Add verification series - * * @throws DomainException */ public function addVerificationSeries(VerificationSeries $verificationSeries): self @@ -218,7 +212,6 @@ public function getVerificationSeriesAll(): array } /** - * Add fiscal year */ public function addFiscalYear(FiscalYear $fiscalYear): self { @@ -228,8 +221,6 @@ public function addFiscalYear(FiscalYear $fiscalYear): self } /** - * Get fiscal years - * * @return FiscalYear[] */ public function getFiscalYears(): array diff --git a/src/SIE/Data/Dimension.php b/src/SIE/Data/Dimension.php index 9a90bd5..dbe32b3 100644 --- a/src/SIE/Data/Dimension.php +++ b/src/SIE/Data/Dimension.php @@ -18,7 +18,7 @@ */ final class Dimension { - //FIXME Add support for custom dimensions (#DIM), id 20+ This means generating #DIM-fields for the SIE-export. + // FIXME Add support for custom dimensions (#DIM), id 20+ This means generating #DIM-fields for the SIE-export. /** * See 8.17 in "SIE_filformat_ver_4B_ENGLISH.pdf" "Reserved dimension numbers" @@ -76,7 +76,6 @@ public function getId(): int } /** - * Add object */ public function addObject(DimensionObject $object): self { diff --git a/src/SIE/Data/FiscalYear.php b/src/SIE/Data/FiscalYear.php index 7f522e2..df4674f 100644 --- a/src/SIE/Data/FiscalYear.php +++ b/src/SIE/Data/FiscalYear.php @@ -100,7 +100,8 @@ public function setDateEnd(\DateTime $dateEnd): self */ public function addAccountBalance(AccountBalance $accountBalance): self { - $id = $accountBalance->getAccount()->getId(); + $id = $accountBalance->getAccount() + ->getId(); if (isset($this->accountBalances[$id])) { throw new DomainException('The balances for account id "' . $id . '" is already defined.'); } diff --git a/src/SIE/Exception/DomainException.php b/src/SIE/Exception/DomainException.php index 3d44eae..6538d93 100644 --- a/src/SIE/Exception/DomainException.php +++ b/src/SIE/Exception/DomainException.php @@ -13,9 +13,6 @@ namespace SIE\Exception; -/** - * @package SIE\Exception - */ class DomainException extends \DomainException { } From 4168d2624b43ed689c493550c66ae1c9b3e45f71 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 10:35:53 +0000 Subject: [PATCH 3/3] Apply CS/Rector changes --- src/SIE/Data/Company.php | 2 -- src/SIE/Data/Dimension.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/SIE/Data/Company.php b/src/SIE/Data/Company.php index 383ce34..bce459c 100644 --- a/src/SIE/Data/Company.php +++ b/src/SIE/Data/Company.php @@ -211,8 +211,6 @@ public function getVerificationSeriesAll(): array return $this->verificationSeries; } - /** - */ public function addFiscalYear(FiscalYear $fiscalYear): self { $this->fiscalYears[] = $fiscalYear; diff --git a/src/SIE/Data/Dimension.php b/src/SIE/Data/Dimension.php index dbe32b3..8c8cfa5 100644 --- a/src/SIE/Data/Dimension.php +++ b/src/SIE/Data/Dimension.php @@ -75,8 +75,6 @@ public function getId(): int return $this->id; } - /** - */ public function addObject(DimensionObject $object): self { $object->setDimension($this);