From 4f5d9d7a197ab8406d9aef97a810af89e289ab28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Apr 2026 10:50:38 +0000 Subject: [PATCH 1/2] :arrow_up: Bump the composer group with 2 updates --- updated-dependencies: - dependency-name: league/flysystem dependency-version: 3.33.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: composer - dependency-name: phpstan/phpstan dependency-version: 2.1.46 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: composer ... Signed-off-by: dependabot[bot] --- composer.lock | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/composer.lock b/composer.lock index 1c26da1..f3368af 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "league/flysystem", - "version": "3.32.0", + "version": "3.33.0", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "254b1595b16b22dbddaaef9ed6ca9fdac4956725" + "reference": "570b8871e0ce693764434b29154c54b434905350" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/254b1595b16b22dbddaaef9ed6ca9fdac4956725", - "reference": "254b1595b16b22dbddaaef9ed6ca9fdac4956725", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/570b8871e0ce693764434b29154c54b434905350", + "reference": "570b8871e0ce693764434b29154c54b434905350", "shasum": "" }, "require": { @@ -85,9 +85,9 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.32.0" + "source": "https://github.com/thephpleague/flysystem/tree/3.33.0" }, - "time": "2026-02-25T17:01:41+00:00" + "time": "2026-03-25T07:59:30+00:00" }, { "name": "league/flysystem-local", @@ -1457,11 +1457,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.40", + "version": "2.1.46", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b", - "reference": "9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a193923fc2d6325ef4e741cf3af8c3e8f54dbf25", + "reference": "a193923fc2d6325ef4e741cf3af8c3e8f54dbf25", "shasum": "" }, "require": { @@ -1506,7 +1506,7 @@ "type": "github" } ], - "time": "2026-02-23T15:04:35+00:00" + "time": "2026-04-01T09:25:14+00:00" }, { "name": "phpunit/php-code-coverage", @@ -3105,5 +3105,5 @@ "php": "^8.3" }, "platform-dev": {}, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } From daeb41f7c9f603d9a03b74c04c139ec79fb8b8e8 Mon Sep 17 00:00:00 2001 From: homersimpsons Date: Thu, 2 Apr 2026 20:48:19 +0200 Subject: [PATCH 2/2] :rotating_light: Fix `getMostCommonName` returns ?string Declaring a `non-empty-list` (with `__construct(private string $stableName, string $value)` proved to be impracticable regarding usage changes. --- src/MappingEntry.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MappingEntry.php b/src/MappingEntry.php index e18f2e7..5ae585f 100644 --- a/src/MappingEntry.php +++ b/src/MappingEntry.php @@ -7,10 +7,11 @@ use function array_count_values; use function array_key_first; use function arsort; +use function assert; class MappingEntry { - /** @var array */ + /** @var list */ private array $names = []; public function __construct(private string $stableName) @@ -29,6 +30,7 @@ public function getStableName(): string public function getMostCommonName(): string { + assert(! empty($this->names)); $values = array_count_values($this->names); arsort($values);