Update composer dependencies
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 21 Sep 2023 07:44:10 +0000 (09:44 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 21 Sep 2023 07:44:10 +0000 (09:44 +0200)
wcfsetup/install/files/lib/system/api/composer.lock
wcfsetup/install/files/lib/system/api/composer/installed.json
wcfsetup/install/files/lib/system/api/composer/installed.php
wcfsetup/install/files/lib/system/api/laminas/laminas-stdlib/composer.json
wcfsetup/install/files/lib/system/api/laminas/laminas-stdlib/src/AbstractOptions.php
wcfsetup/install/files/lib/system/api/laminas/laminas-stdlib/src/ArrayUtils.php
wcfsetup/install/files/lib/system/api/laminas/laminas-stdlib/src/ParameterObjectInterface.php

index 055b83e2a4f4302898b08bb6c795b2dd6f0bcc58..eb5fbfa863aa248f52d6a9ca3dd2b957afc47441 100644 (file)
         },
         {
             "name": "laminas/laminas-stdlib",
-            "version": "3.17.0",
+            "version": "3.18.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/laminas/laminas-stdlib.git",
-                "reference": "dd35c868075bad80b6718959740913e178eb4274"
+                "reference": "e85b29076c6216e7fc98e72b42dbe1bbc3b95ecf"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/dd35c868075bad80b6718959740913e178eb4274",
-                "reference": "dd35c868075bad80b6718959740913e178eb4274",
+                "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/e85b29076c6216e7fc98e72b42dbe1bbc3b95ecf",
+                "reference": "e85b29076c6216e7fc98e72b42dbe1bbc3b95ecf",
                 "shasum": ""
             },
             "require": {
-                "php": "~8.1.0 || ~8.2.0"
+                "php": "~8.1.0 || ~8.2.0 || ~8.3.0"
             },
             "conflict": {
                 "zendframework/zend-stdlib": "*"
             },
             "require-dev": {
                 "laminas/laminas-coding-standard": "^2.5",
-                "phpbench/phpbench": "^1.2.9",
-                "phpunit/phpunit": "^10.0.16",
+                "phpbench/phpbench": "^1.2.14",
+                "phpunit/phpunit": "^10.3.3",
                 "psalm/plugin-phpunit": "^0.18.4",
-                "vimeo/psalm": "^5.8"
+                "vimeo/psalm": "^5.15.0"
             },
             "type": "library",
             "autoload": {
                     "type": "community_bridge"
                 }
             ],
-            "time": "2023-03-20T13:51:37+00:00"
+            "time": "2023-09-19T10:15:21+00:00"
         },
         {
             "name": "paragonie/constant_time_encoding",
index 407f324681e680fceae861f185da5dc1c4256ee1..a52b927a876f22fec3c79d2cb336878ad9887092 100644 (file)
         },
         {
             "name": "laminas/laminas-stdlib",
-            "version": "3.17.0",
-            "version_normalized": "3.17.0.0",
+            "version": "3.18.0",
+            "version_normalized": "3.18.0.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/laminas/laminas-stdlib.git",
-                "reference": "dd35c868075bad80b6718959740913e178eb4274"
+                "reference": "e85b29076c6216e7fc98e72b42dbe1bbc3b95ecf"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/dd35c868075bad80b6718959740913e178eb4274",
-                "reference": "dd35c868075bad80b6718959740913e178eb4274",
+                "url": "https://api.github.com/repos/laminas/laminas-stdlib/zipball/e85b29076c6216e7fc98e72b42dbe1bbc3b95ecf",
+                "reference": "e85b29076c6216e7fc98e72b42dbe1bbc3b95ecf",
                 "shasum": ""
             },
             "require": {
-                "php": "~8.1.0 || ~8.2.0"
+                "php": "~8.1.0 || ~8.2.0 || ~8.3.0"
             },
             "conflict": {
                 "zendframework/zend-stdlib": "*"
             },
             "require-dev": {
                 "laminas/laminas-coding-standard": "^2.5",
-                "phpbench/phpbench": "^1.2.9",
-                "phpunit/phpunit": "^10.0.16",
+                "phpbench/phpbench": "^1.2.14",
+                "phpunit/phpunit": "^10.3.3",
                 "psalm/plugin-phpunit": "^0.18.4",
-                "vimeo/psalm": "^5.8"
+                "vimeo/psalm": "^5.15.0"
             },
-            "time": "2023-03-20T13:51:37+00:00",
+            "time": "2023-09-19T10:15:21+00:00",
             "type": "library",
             "installation-source": "dist",
             "autoload": {
index a1e2944f9f40bf1bb1ad718cd454bcfb9c2ed43e..95ab7dd1e54541f2b3442099da1990324c2d83f7 100644 (file)
             'dev_requirement' => false,
         ),
         'laminas/laminas-stdlib' => array(
-            'pretty_version' => '3.17.0',
-            'version' => '3.17.0.0',
-            'reference' => 'dd35c868075bad80b6718959740913e178eb4274',
+            'pretty_version' => '3.18.0',
+            'version' => '3.18.0.0',
+            'reference' => 'e85b29076c6216e7fc98e72b42dbe1bbc3b95ecf',
             'type' => 'library',
             'install_path' => __DIR__ . '/../laminas/laminas-stdlib',
             'aliases' => array(),
index 6b487a42c095f2a38ba334b7cb4e1d5e8ffa7afb..974e19d98212cb205979e750d90d74521ba242ef 100644 (file)
     "extra": {
     },
     "require": {
-        "php": "~8.1.0 || ~8.2.0"
+        "php": "~8.1.0 || ~8.2.0 || ~8.3.0"
     },
     "require-dev": {
         "laminas/laminas-coding-standard": "^2.5",
-        "phpbench/phpbench": "^1.2.9",
-        "phpunit/phpunit": "^10.0.16",
+        "phpbench/phpbench": "^1.2.14",
+        "phpunit/phpunit": "^10.3.3",
         "psalm/plugin-phpunit": "^0.18.4",
-        "vimeo/psalm": "^5.8"
+        "vimeo/psalm": "^5.15.0"
     },
     "autoload": {
         "psr-4": {
index d02221ab163646ee03c0c5bc3a39b6bda5b0bc27..5db2ea95bd1d716d7e11bf2bf3b26bdb5ce5c4ad 100644 (file)
@@ -7,6 +7,7 @@ namespace Laminas\Stdlib;
 use Traversable;
 
 use function array_shift;
+use function get_object_vars;
 use function is_array;
 use function is_callable;
 use function method_exists;
@@ -16,6 +17,10 @@ use function str_replace;
 use function strtolower;
 use function ucwords;
 
+/**
+ * @template TValue
+ * @implements ParameterObjectInterface<string, TValue>
+ */
 abstract class AbstractOptions implements ParameterObjectInterface
 {
     // phpcs:disable PSR2.Classes.PropertyDeclaration.Underscore,WebimpressCodingStandard.NamingConventions.ValidVariableName.NotCamelCapsProperty
@@ -33,7 +38,7 @@ abstract class AbstractOptions implements ParameterObjectInterface
     /**
      * Constructor
      *
-     * @param  array|Traversable|null $options
+     * @param  iterable<string, TValue>|AbstractOptions<TValue>|null $options
      */
     public function __construct($options = null)
     {
@@ -45,7 +50,7 @@ abstract class AbstractOptions implements ParameterObjectInterface
     /**
      * Set one or more configuration properties
      *
-     * @param  array|Traversable|AbstractOptions $options
+     * @param  iterable<string, TValue>|AbstractOptions<TValue> $options
      * @throws Exception\InvalidArgumentException
      * @return AbstractOptions Provides fluent interface
      */
@@ -77,19 +82,20 @@ abstract class AbstractOptions implements ParameterObjectInterface
     /**
      * Cast to array
      *
-     * @return array
+     * @return array<string, TValue>
      */
     public function toArray()
     {
         $array = [];
 
-        /** @param string[] $letters */
         $transform = static function (array $letters): string {
+            /** @var list<string> $letters */
             $letter = array_shift($letters);
             return '_' . strtolower($letter);
         };
 
-        foreach ($this as $key => $value) {
+        /** @psalm-var TValue $value */
+        foreach (get_object_vars($this) as $key => $value) {
             if ($key === '__strictMode__') {
                 continue;
             }
@@ -106,7 +112,7 @@ abstract class AbstractOptions implements ParameterObjectInterface
      * @see ParameterObject::__set()
      *
      * @param string $key
-     * @param mixed $value
+     * @param TValue|null $value
      * @throws Exception\BadMethodCallException
      * @return void
      */
@@ -137,7 +143,7 @@ abstract class AbstractOptions implements ParameterObjectInterface
      *
      * @param string $key
      * @throws Exception\BadMethodCallException
-     * @return mixed
+     * @return TValue
      */
     public function __get($key)
     {
index 75ddd529f041f84f3b1c0328aa99b344d9cef1d7..935d98894fa01f0e3f7bb8680b027f736f3abbcc 100644 (file)
@@ -35,11 +35,15 @@ abstract class ArrayUtils
 {
     /**
      * Compatibility Flag for ArrayUtils::filter
+     *
+     * @deprecated
      */
     public const ARRAY_FILTER_USE_BOTH = 1;
 
     /**
      * Compatibility Flag for ArrayUtils::filter
+     *
+     * @deprecated
      */
     public const ARRAY_FILTER_USE_KEY = 2;
 
index b091c107e2db6ede3842583c4fa5490f0724b8fd..39e5ffce36ec67b79f22a33dd4165353042f90e9 100644 (file)
@@ -4,28 +4,33 @@ declare(strict_types=1);
 
 namespace Laminas\Stdlib;
 
+/**
+ * @template TKey of string
+ * @template TValue
+ */
 interface ParameterObjectInterface
 {
     /**
-     * @param string $key
+     * @param TKey $key
+     * @param TValue|null $value
      * @return void
      */
     public function __set($key, mixed $value);
 
     /**
-     * @param string $key
-     * @return mixed
+     * @param TKey $key
+     * @return TValue
      */
     public function __get($key);
 
     /**
-     * @param string $key
+     * @param TKey $key
      * @return bool
      */
     public function __isset($key);
 
     /**
-     * @param string $key
+     * @param TKey $key
      * @return void
      */
     public function __unset($key);