summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2025-04-27 14:41:39 +0000
committerwn_ <invalid@email.com>2025-04-27 14:41:39 +0000
commit7ad1efed3ef530c2dd3f464c94cd2964e0e1a194 (patch)
tree0d7cf98ad15aa773794b8144c864514ab83bf10e
parent0961c8bd4c8a4f61f9458c08bf0e91b5cc2aa5d0 (diff)
Bump PHPStan to 2.1.13
-rw-r--r--composer.json2
-rw-r--r--composer.lock12
-rw-r--r--vendor/autoload.php5
-rw-r--r--vendor/composer/InstalledVersions.php45
-rw-r--r--vendor/composer/autoload_classmap.php1
-rw-r--r--vendor/composer/autoload_psr4.php2
-rw-r--r--vendor/composer/autoload_static.php7
-rw-r--r--vendor/composer/installed.json12
-rw-r--r--vendor/composer/installed.php10
-rw-r--r--vendor/phpstan/phpstan/LICENSE1
-rw-r--r--vendor/phpstan/phpstan/README.md6
-rwxr-xr-xvendor/phpstan/phpstan/phpstan.pharbin23477397 -> 24045381 bytes
-rw-r--r--vendor/phpstan/phpstan/phpstan.phar.asc26
13 files changed, 83 insertions, 46 deletions
diff --git a/composer.json b/composer.json
index d24dc045c..e9031ad82 100644
--- a/composer.json
+++ b/composer.json
@@ -29,7 +29,7 @@
"guzzlehttp/guzzle": "^7.0"
},
"require-dev": {
- "phpstan/phpstan": "2.0.1",
+ "phpstan/phpstan": "2.1.13",
"phpunit/phpunit": "9.5.16",
"phpunit/php-code-coverage": "^9.2"
}
diff --git a/composer.lock b/composer.lock
index 24ea84514..b78a7a17a 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "1aa8437b32b5398144a47490f6bcdfa0",
+ "content-hash": "ad2f3020f2db46475c16f9710a84bca4",
"packages": [
{
"name": "chillerlan/php-qrcode",
@@ -1648,16 +1648,16 @@
},
{
"name": "phpstan/phpstan",
- "version": "2.0.1",
+ "version": "2.1.13",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
- "reference": "ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d"
+ "reference": "e55e03e6d4ac49cd1240907e5b08e5cd378572a9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d",
- "reference": "ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e55e03e6d4ac49cd1240907e5b08e5cd378572a9",
+ "reference": "e55e03e6d4ac49cd1240907e5b08e5cd378572a9",
"shasum": ""
},
"require": {
@@ -1702,7 +1702,7 @@
"type": "github"
}
],
- "time": "2024-11-11T15:43:04+00:00"
+ "time": "2025-04-27T12:28:25+00:00"
},
{
"name": "phpunit/php-code-coverage",
diff --git a/vendor/autoload.php b/vendor/autoload.php
index 8235051f8..1ff829eb2 100644
--- a/vendor/autoload.php
+++ b/vendor/autoload.php
@@ -14,10 +14,7 @@ if (PHP_VERSION_ID < 50600) {
echo $err;
}
}
- trigger_error(
- $err,
- E_USER_ERROR
- );
+ throw new RuntimeException($err);
}
require_once __DIR__ . '/composer/autoload_real.php';
diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php
index 51e734a77..2052022fd 100644
--- a/vendor/composer/InstalledVersions.php
+++ b/vendor/composer/InstalledVersions.php
@@ -27,12 +27,23 @@ use Composer\Semver\VersionParser;
class InstalledVersions
{
/**
+ * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
+ * @internal
+ */
+ private static $selfDir = null;
+
+ /**
* @var mixed[]|null
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
*/
private static $installed;
/**
+ * @var bool
+ */
+ private static $installedIsLocalDir;
+
+ /**
* @var bool|null
*/
private static $canGetVendors;
@@ -309,6 +320,24 @@ class InstalledVersions
{
self::$installed = $data;
self::$installedByVendor = array();
+
+ // when using reload, we disable the duplicate protection to ensure that self::$installed data is
+ // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
+ // so we have to assume it does not, and that may result in duplicate data being returned when listing
+ // all installed packages for example
+ self::$installedIsLocalDir = false;
+ }
+
+ /**
+ * @return string
+ */
+ private static function getSelfDir()
+ {
+ if (self::$selfDir === null) {
+ self::$selfDir = strtr(__DIR__, '\\', '/');
+ }
+
+ return self::$selfDir;
}
/**
@@ -322,19 +351,27 @@ class InstalledVersions
}
$installed = array();
+ $copiedLocalDir = false;
if (self::$canGetVendors) {
+ $selfDir = self::getSelfDir();
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
+ $vendorDir = strtr($vendorDir, '\\', '/');
if (isset(self::$installedByVendor[$vendorDir])) {
$installed[] = self::$installedByVendor[$vendorDir];
} elseif (is_file($vendorDir.'/composer/installed.php')) {
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
$required = require $vendorDir.'/composer/installed.php';
- $installed[] = self::$installedByVendor[$vendorDir] = $required;
- if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
- self::$installed = $installed[count($installed) - 1];
+ self::$installedByVendor[$vendorDir] = $required;
+ $installed[] = $required;
+ if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
+ self::$installed = $required;
+ self::$installedIsLocalDir = true;
}
}
+ if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
+ $copiedLocalDir = true;
+ }
}
}
@@ -350,7 +387,7 @@ class InstalledVersions
}
}
- if (self::$installed !== array()) {
+ if (self::$installed !== array() && !$copiedLocalDir) {
$installed[] = self::$installed;
}
diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php
index 9d549cf48..39b16fb04 100644
--- a/vendor/composer/autoload_classmap.php
+++ b/vendor/composer/autoload_classmap.php
@@ -14,6 +14,7 @@ return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'Config' => $baseDir . '/classes/Config.php',
'Counters' => $baseDir . '/classes/Counters.php',
+ 'Crypt' => $baseDir . '/classes/Crypt.php',
'Db' => $baseDir . '/classes/Db.php',
'Db_Migrations' => $baseDir . '/classes/Db_Migrations.php',
'Db_Prefs' => $baseDir . '/classes/Db_Prefs.php',
diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php
index 011fbfb51..9c7d39932 100644
--- a/vendor/composer/autoload_psr4.php
+++ b/vendor/composer/autoload_psr4.php
@@ -6,7 +6,7 @@ $vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
- 'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src'),
+ 'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src', $vendorDir . '/phpdocumentor/reflection-common/src'),
'chillerlan\\Settings\\' => array($vendorDir . '/chillerlan/php-settings-container/src'),
'chillerlan\\QRCode\\' => array($vendorDir . '/chillerlan/php-qrcode/src'),
'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php
index cdd8fcfe8..f7e6408aa 100644
--- a/vendor/composer/autoload_static.php
+++ b/vendor/composer/autoload_static.php
@@ -63,9 +63,9 @@ class ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056
public static $prefixDirsPsr4 = array (
'phpDocumentor\\Reflection\\' =>
array (
- 0 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src',
- 1 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src',
- 2 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src',
+ 0 => __DIR__ . '/..' . '/phpdocumentor/reflection-docblock/src',
+ 1 => __DIR__ . '/..' . '/phpdocumentor/type-resolver/src',
+ 2 => __DIR__ . '/..' . '/phpdocumentor/reflection-common/src',
),
'chillerlan\\Settings\\' =>
array (
@@ -147,6 +147,7 @@ class ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
'Config' => __DIR__ . '/../..' . '/classes/Config.php',
'Counters' => __DIR__ . '/../..' . '/classes/Counters.php',
+ 'Crypt' => __DIR__ . '/../..' . '/classes/Crypt.php',
'Db' => __DIR__ . '/../..' . '/classes/Db.php',
'Db_Migrations' => __DIR__ . '/../..' . '/classes/Db_Migrations.php',
'Db_Prefs' => __DIR__ . '/../..' . '/classes/Db_Prefs.php',
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index cb7009550..0fdf8b38e 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1235,17 +1235,17 @@
},
{
"name": "phpstan/phpstan",
- "version": "2.0.1",
- "version_normalized": "2.0.1.0",
+ "version": "2.1.13",
+ "version_normalized": "2.1.13.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
- "reference": "ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d"
+ "reference": "e55e03e6d4ac49cd1240907e5b08e5cd378572a9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d",
- "reference": "ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e55e03e6d4ac49cd1240907e5b08e5cd378572a9",
+ "reference": "e55e03e6d4ac49cd1240907e5b08e5cd378572a9",
"shasum": ""
},
"require": {
@@ -1254,7 +1254,7 @@
"conflict": {
"phpstan/phpstan-shim": "*"
},
- "time": "2024-11-11T15:43:04+00:00",
+ "time": "2025-04-27T12:28:25+00:00",
"bin": [
"phpstan",
"phpstan.phar"
diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php
index ec8677198..edcc369dd 100644
--- a/vendor/composer/installed.php
+++ b/vendor/composer/installed.php
@@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
- 'reference' => 'cd2c10f9f71409df24fc74c1bbd7d5ddbf48d991',
+ 'reference' => '0961c8bd4c8a4f61f9458c08bf0e91b5cc2aa5d0',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
- 'reference' => 'cd2c10f9f71409df24fc74c1bbd7d5ddbf48d991',
+ 'reference' => '0961c8bd4c8a4f61f9458c08bf0e91b5cc2aa5d0',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -175,9 +175,9 @@
'dev_requirement' => true,
),
'phpstan/phpstan' => array(
- 'pretty_version' => '2.0.1',
- 'version' => '2.0.1.0',
- 'reference' => 'ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d',
+ 'pretty_version' => '2.1.13',
+ 'version' => '2.1.13.0',
+ 'reference' => 'e55e03e6d4ac49cd1240907e5b08e5cd378572a9',
'type' => 'library',
'install_path' => __DIR__ . '/../phpstan/phpstan',
'aliases' => array(),
diff --git a/vendor/phpstan/phpstan/LICENSE b/vendor/phpstan/phpstan/LICENSE
index 7c0f2b7b6..e5f34e607 100644
--- a/vendor/phpstan/phpstan/LICENSE
+++ b/vendor/phpstan/phpstan/LICENSE
@@ -1,6 +1,7 @@
MIT License
Copyright (c) 2016 Ondřej Mirtes
+Copyright (c) 2025 PHPStan s.r.o.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/vendor/phpstan/phpstan/README.md b/vendor/phpstan/phpstan/README.md
index e3bb94063..abae67ecf 100644
--- a/vendor/phpstan/phpstan/README.md
+++ b/vendor/phpstan/phpstan/README.md
@@ -60,11 +60,11 @@ can be checked before you run the actual line.
&nbsp;&nbsp;&nbsp;
<a href="https://inviqa.com/"><img src="website/src/images/sponsor/inviqa.png" alt="Inviqa" width="254" height="65"></a>
<br>
-<a href="https://www.getresponse.com/"><img src="website/src/images/sponsor/getresponse.png" alt="GetResponse" width="283" height="64"></a>
-&nbsp;&nbsp;&nbsp;
<a href="https://www.shoptet.cz/"><img src="website/src/images/sponsor/shoptet.png" alt="Shoptet" width="283" height="64"></a>
-<br>
+&nbsp;&nbsp;&nbsp;
<a href="https://route4me.com/"><img src="website/src/images/sponsor/route4me.png" alt="Route4Me: Route Optimizer and Route Planner Software" width="283" height="64"></a>
+<br>
+<a href="https://werkenbijbelsimpel.nl/en/about-us/"><img src="website/src/images/sponsor/belsimpel.png" alt="Belsimpel" width="284" height="64"></a>
&nbsp;&nbsp;&nbsp;
<a href="https://jobs.ticketswap.com/"><img src="website/src/images/sponsor/ticketswap.png" alt="TicketSwap" width="269" height="64"></a>
diff --git a/vendor/phpstan/phpstan/phpstan.phar b/vendor/phpstan/phpstan/phpstan.phar
index 1bfd1e5cb..06c6b48a6 100755
--- a/vendor/phpstan/phpstan/phpstan.phar
+++ b/vendor/phpstan/phpstan/phpstan.phar
Binary files differ
diff --git a/vendor/phpstan/phpstan/phpstan.phar.asc b/vendor/phpstan/phpstan/phpstan.phar.asc
index 1f97d1db1..c6acfbe08 100644
--- a/vendor/phpstan/phpstan/phpstan.phar.asc
+++ b/vendor/phpstan/phpstan/phpstan.phar.asc
@@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE-----
-iQIzBAABCgAdFiEEynwsejDI6OEnS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