A free, self-hostable news aggregator…
composer update + corresponding PHPStan fixes (#7781)
Alexandre Alapetite536c476f0d5c
diff --git a/composer.lock b/composer.lockindex e6a5ffe52..1be2a02a6 100644--- a/composer.lock+++ b/composer.lock@@ -9,16 +9,16 @@"packages-dev": [{"name": "myclabs/deep-copy",- "version": "1.13.0",+ "version": "1.13.4","source": {"type": "git","url": "https://github.com/myclabs/DeepCopy.git",- "reference": "024473a478be9df5fdaca2c793f2232fe788e414"+ "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/024473a478be9df5fdaca2c793f2232fe788e414",- "reference": "024473a478be9df5fdaca2c793f2232fe788e414",+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a",+ "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a","shasum": ""},"require": {@@ -57,7 +57,7 @@],"support": {"issues": "https://github.com/myclabs/DeepCopy/issues",- "source": "https://github.com/myclabs/DeepCopy/tree/1.13.0"+ "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4"},"funding": [{@@ -65,20 +65,20 @@"type": "tidelift"}],- "time": "2025-02-12T12:17:51+00:00"+ "time": "2025-08-01T08:46:24+00:00"},{"name": "nikic/php-parser",- "version": "v5.4.0",+ "version": "v5.6.0","source": {"type": "git","url": "https://github.com/nikic/PHP-Parser.git",- "reference": "447a020a1f875a434d62f2a401f53b82a396e494"+ "reference": "221b0d0fdf1369c71047ad1d18bb5880017bbc56"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494",- "reference": "447a020a1f875a434d62f2a401f53b82a396e494",+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/221b0d0fdf1369c71047ad1d18bb5880017bbc56",+ "reference": "221b0d0fdf1369c71047ad1d18bb5880017bbc56","shasum": ""},"require": {@@ -121,9 +121,9 @@],"support": {"issues": "https://github.com/nikic/PHP-Parser/issues",- "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0"+ "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.0"},- "time": "2024-12-30T11:07:19+00:00"+ "time": "2025-07-27T20:03:57+00:00"},{"name": "phar-io/manifest",@@ -245,16 +245,16 @@},{"name": "phpstan/phpstan",- "version": "2.1.17",+ "version": "2.1.21","source": {"type": "git","url": "https://github.com/phpstan/phpstan.git",- "reference": "89b5ef665716fa2a52ecd2633f21007a6a349053"+ "reference": "1ccf445757458c06a04eb3f803603cb118fe5fa6"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/89b5ef665716fa2a52ecd2633f21007a6a349053",- "reference": "89b5ef665716fa2a52ecd2633f21007a6a349053",+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/1ccf445757458c06a04eb3f803603cb118fe5fa6",+ "reference": "1ccf445757458c06a04eb3f803603cb118fe5fa6","shasum": ""},"require": {@@ -299,25 +299,25 @@"type": "github"}],- "time": "2025-05-21T20:55:28+00:00"+ "time": "2025-07-28T19:35:08+00:00"},{"name": "phpstan/phpstan-phpunit",- "version": "2.0.6",+ "version": "2.0.7","source": {"type": "git","url": "https://github.com/phpstan/phpstan-phpunit.git",- "reference": "6b92469f8a7995e626da3aa487099617b8dfa260"+ "reference": "9a9b161baee88a5f5c58d816943cff354ff233dc"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/6b92469f8a7995e626da3aa487099617b8dfa260",- "reference": "6b92469f8a7995e626da3aa487099617b8dfa260",+ "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/9a9b161baee88a5f5c58d816943cff354ff233dc",+ "reference": "9a9b161baee88a5f5c58d816943cff354ff233dc","shasum": ""},"require": {"php": "^7.4 || ^8.0",- "phpstan/phpstan": "^2.0.4"+ "phpstan/phpstan": "^2.1.18"},"conflict": {"phpunit/phpunit": "<7.0"@@ -350,22 +350,22 @@"description": "PHPUnit extensions and rules for PHPStan","support": {"issues": "https://github.com/phpstan/phpstan-phpunit/issues",- "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.6"+ "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.7"},- "time": "2025-03-26T12:47:06+00:00"+ "time": "2025-07-13T11:31:46+00:00"},{"name": "phpstan/phpstan-strict-rules",- "version": "2.0.4",+ "version": "2.0.6","source": {"type": "git","url": "https://github.com/phpstan/phpstan-strict-rules.git",- "reference": "3e139cbe67fafa3588e1dbe27ca50f31fdb6236a"+ "reference": "f9f77efa9de31992a832ff77ea52eb42d675b094"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/3e139cbe67fafa3588e1dbe27ca50f31fdb6236a",- "reference": "3e139cbe67fafa3588e1dbe27ca50f31fdb6236a",+ "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/f9f77efa9de31992a832ff77ea52eb42d675b094",+ "reference": "f9f77efa9de31992a832ff77ea52eb42d675b094","shasum": ""},"require": {@@ -398,9 +398,9 @@"description": "Extra strict and opinionated rules for PHPStan","support": {"issues": "https://github.com/phpstan/phpstan-strict-rules/issues",- "source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.4"+ "source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.6"},- "time": "2025-03-18T11:42:40+00:00"+ "time": "2025-07-21T12:19:29+00:00"},{"name": "phpunit/php-code-coverage",@@ -725,16 +725,16 @@},{"name": "phpunit/phpunit",- "version": "10.5.45",+ "version": "10.5.48","source": {"type": "git","url": "https://github.com/sebastianbergmann/phpunit.git",- "reference": "bd68a781d8e30348bc297449f5234b3458267ae8"+ "reference": "6e0a2bc39f6fae7617989d690d76c48e6d2eb541"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/bd68a781d8e30348bc297449f5234b3458267ae8",- "reference": "bd68a781d8e30348bc297449f5234b3458267ae8",+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6e0a2bc39f6fae7617989d690d76c48e6d2eb541",+ "reference": "6e0a2bc39f6fae7617989d690d76c48e6d2eb541","shasum": ""},"require": {@@ -744,7 +744,7 @@"ext-mbstring": "*","ext-xml": "*","ext-xmlwriter": "*",- "myclabs/deep-copy": "^1.12.1",+ "myclabs/deep-copy": "^1.13.3","phar-io/manifest": "^2.0.4","phar-io/version": "^3.2.1","php": ">=8.1",@@ -806,7 +806,7 @@"support": {"issues": "https://github.com/sebastianbergmann/phpunit/issues","security": "https://github.com/sebastianbergmann/phpunit/security/policy",- "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.45"+ "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.48"},"funding": [{@@ -817,12 +817,20 @@"url": "https://github.com/sebastianbergmann","type": "github"},+ {+ "url": "https://liberapay.com/sebastianbergmann",+ "type": "liberapay"+ },+ {+ "url": "https://thanks.dev/u/gh/sebastianbergmann",+ "type": "thanks_dev"+ },{"url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit","type": "tidelift"}],- "time": "2025-02-06T16:08:12+00:00"+ "time": "2025-07-11T04:07:17+00:00"},{"name": "sebastian/cli-parser",@@ -1877,7 +1885,7 @@],"aliases": [],"minimum-stability": "stable",- "stability-flags": [],+ "stability-flags": {},"prefer-stable": false,"prefer-lowest": false,"platform": {@@ -1912,5 +1920,5 @@"platform-overrides": {"php": "8.1"},- "plugin-api-version": "2.3.0"+ "plugin-api-version": "2.6.0"}diff --git a/lib/Minz/Pdo.php b/lib/Minz/Pdo.phpindex 705c2d58c..fa3f3061c 100644--- a/lib/Minz/Pdo.php+++ b/lib/Minz/Pdo.php@@ -51,7 +51,7 @@ abstract class Minz_Pdo extends PDO {/*** @param array<int,string> $options* @throws PDOException if the attribute `PDO::ATTR_ERRMODE` is set to `PDO::ERRMODE_EXCEPTION`- * @phpstan-ignore method.childParameterType, throws.unusedType+ * @phpstan-ignore method.childParameterType*/#[\Override]public function prepare(string $query, array $options = []): PDOStatement|false {@@ -61,7 +61,6 @@ abstract class Minz_Pdo extends PDO {/*** @throws PDOException if the attribute `PDO::ATTR_ERRMODE` is set to `PDO::ERRMODE_EXCEPTION`- * @phpstan-ignore throws.unusedType*/#[\Override]public function exec(string $statement): int|false {@@ -71,7 +70,6 @@ abstract class Minz_Pdo extends PDO {/*** @throws PDOException if the attribute `PDO::ATTR_ERRMODE` is set to `PDO::ERRMODE_EXCEPTION`- * @phpstan-ignore throws.unusedType*/#[\Override]public function query(string $query, ?int $fetch_mode = null, ...$fetch_mode_args): PDOStatement|false {