diff --git a/typerocket-v5.php b/typerocket-v5.php
index f362e3a5..4b9f216a 100644
--- a/typerocket-v5.php
+++ b/typerocket-v5.php
@@ -3,7 +3,7 @@
Plugin Name: TypeRocket - Andromeda
Plugin URI: https://typerocket.com/
Description: TypeRocket is a framework that joins refined UI elements and modern programming architecture together.
-Version: 5.0.5
+Version: 5.0.6
Requires at least: 5.5
Requires PHP: 7.2
Author: TypeRocket
@@ -34,7 +34,7 @@ public function __construct()
return;
}
- define('TYPEROCKET_PLUGIN_VERSION', '5.0.5');
+ define('TYPEROCKET_PLUGIN_VERSION', '5.0.6');
define('TYPEROCKET_PLUGIN_INSTALL', __DIR__);
if(!defined('TYPEROCKET_ROOT_WP'))
diff --git a/typerocket/app/Auth/PagePolicy.php b/typerocket/app/Auth/PagePolicy.php
index f7ea610c..7dc7edef 100644
--- a/typerocket/app/Auth/PagePolicy.php
+++ b/typerocket/app/Auth/PagePolicy.php
@@ -1,9 +1,6 @@
=7.1"
},
"require-dev": {
- "phpunit/phpunit": "^9.0"
+ "phpunit/phpunit": "^7.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0-dev"
+ "dev-master": "3.1-dev"
}
},
"autoload": {
@@ -1602,7 +1602,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
- "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master"
+ "source": "https://github.com/sebastianbergmann/php-token-stream/tree/3.1.2"
},
"funding": [
{
@@ -1611,20 +1611,20 @@
}
],
"abandoned": true,
- "time": "2020-08-04T08:28:15+00:00"
+ "time": "2020-11-30T08:38:46+00:00"
},
{
"name": "phpunit/phpunit",
- "version": "8.5.13",
+ "version": "8.5.14",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "8e86be391a58104ef86037ba8a846524528d784e"
+ "reference": "c25f79895d27b6ecd5abfa63de1606b786a461a3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/8e86be391a58104ef86037ba8a846524528d784e",
- "reference": "8e86be391a58104ef86037ba8a846524528d784e",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c25f79895d27b6ecd5abfa63de1606b786a461a3",
+ "reference": "c25f79895d27b6ecd5abfa63de1606b786a461a3",
"shasum": ""
},
"require": {
@@ -1696,7 +1696,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.13"
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.14"
},
"funding": [
{
@@ -1708,7 +1708,7 @@
"type": "github"
}
],
- "time": "2020-12-01T04:53:52+00:00"
+ "time": "2021-01-17T07:37:30+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
@@ -2494,12 +2494,12 @@
"version": "1.9.1",
"source": {
"type": "git",
- "url": "https://github.com/webmozart/assert.git",
+ "url": "https://github.com/webmozarts/assert.git",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
+ "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
"shasum": ""
},
@@ -2537,8 +2537,8 @@
"validate"
],
"support": {
- "issues": "https://github.com/webmozart/assert/issues",
- "source": "https://github.com/webmozart/assert/tree/master"
+ "issues": "https://github.com/webmozarts/assert/issues",
+ "source": "https://github.com/webmozarts/assert/tree/1.9.1"
},
"time": "2020-07-08T17:02:28+00:00"
}
diff --git a/typerocket/helpers.php b/typerocket/helpers.php
index 71c00f4d..92d6fbed 100644
--- a/typerocket/helpers.php
+++ b/typerocket/helpers.php
@@ -1,4 +1,22 @@
array (
),
- 'reference' => '3cad5d93d625abe1fda402d7dae40c45cfbfdad1',
+ 'reference' => '42dd174b82fe371b53b3622a89dd6fc32796366d',
'name' => 'typerocket/typerocket',
),
'versions' =>
@@ -52,66 +52,66 @@ class InstalledVersions
),
'symfony/console' =>
array (
- 'pretty_version' => 'v5.1.9',
- 'version' => '5.1.9.0',
+ 'pretty_version' => 'v5.1.11',
+ 'version' => '5.1.11.0',
'aliases' =>
array (
),
- 'reference' => '037b57ac42cafb64b7b55273fe1786f35d623077',
+ 'reference' => 'd9a267b621c5082e0a6c659d73633b6fd28a8a08',
),
'symfony/polyfill-ctype' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => 'f4ba089a5b6366e453971d3aad5fe8e897b37f41',
+ 'reference' => 'c6c942b1ac76c82448322025e084cadc56048b4e',
),
'symfony/polyfill-intl-grapheme' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => 'c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c',
+ 'reference' => '267a9adeb8ecb8071040a740930e077cdfb987af',
),
'symfony/polyfill-intl-normalizer' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => '727d1096295d807c309fb01a851577302394c897',
+ 'reference' => '6e971c891537eb617a00bb07a43d182a6915faba',
),
'symfony/polyfill-mbstring' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => '39d483bdf39be819deabf04ec872eb0b2410b531',
+ 'reference' => 'f377a3dd1fde44d37b9831d68dc8dea3ffd28e13',
),
'symfony/polyfill-php73' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => '8ff431c517be11c78c48a39a66d37431e26a6bed',
+ 'reference' => 'a678b42e92f86eca04b7fa4c0f6f19d097fb69e2',
),
'symfony/polyfill-php80' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => 'e70aa8b064c5b72d3df2abd5ab1e90464ad009de',
+ 'reference' => 'dc3063ba22c2a1fd2f45ed856374d79114998f91',
),
'symfony/service-contracts' =>
array (
@@ -124,21 +124,21 @@ class InstalledVersions
),
'symfony/string' =>
array (
- 'pretty_version' => 'v5.2.0',
- 'version' => '5.2.0.0',
+ 'pretty_version' => 'v5.2.3',
+ 'version' => '5.2.3.0',
'aliases' =>
array (
),
- 'reference' => '40e975edadd4e32cd16f3753b3bad65d9ac48242',
+ 'reference' => 'c95468897f408dd0aca2ff582074423dd0455122',
),
'typerocket/core' =>
array (
- 'pretty_version' => 'v5.0.31',
- 'version' => '5.0.31.0',
+ 'pretty_version' => 'v5.0.32',
+ 'version' => '5.0.32.0',
'aliases' =>
array (
),
- 'reference' => 'f1f9b95c06dbd9afce6912b167a2a0494a598567',
+ 'reference' => '938ebd1727aefc3e50050f689dafb4ea3d3266e6',
),
'typerocket/typerocket' =>
array (
@@ -147,7 +147,7 @@ class InstalledVersions
'aliases' =>
array (
),
- 'reference' => '3cad5d93d625abe1fda402d7dae40c45cfbfdad1',
+ 'reference' => '42dd174b82fe371b53b3622a89dd6fc32796366d',
),
),
);
diff --git a/typerocket/vendor/composer/installed.json b/typerocket/vendor/composer/installed.json
index 3518aeaa..2f05a368 100644
--- a/typerocket/vendor/composer/installed.json
+++ b/typerocket/vendor/composer/installed.json
@@ -58,17 +58,17 @@
},
{
"name": "symfony/console",
- "version": "v5.1.9",
- "version_normalized": "5.1.9.0",
+ "version": "v5.1.11",
+ "version_normalized": "5.1.11.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "037b57ac42cafb64b7b55273fe1786f35d623077"
+ "reference": "d9a267b621c5082e0a6c659d73633b6fd28a8a08"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/037b57ac42cafb64b7b55273fe1786f35d623077",
- "reference": "037b57ac42cafb64b7b55273fe1786f35d623077",
+ "url": "https://api.github.com/repos/symfony/console/zipball/d9a267b621c5082e0a6c659d73633b6fd28a8a08",
+ "reference": "d9a267b621c5082e0a6c659d73633b6fd28a8a08",
"shasum": ""
},
"require": {
@@ -104,7 +104,7 @@
"symfony/lock": "",
"symfony/process": ""
},
- "time": "2020-11-28T10:57:20+00:00",
+ "time": "2021-01-27T10:01:46+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@@ -129,10 +129,10 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony Console Component",
+ "description": "Eases the creation of beautiful and testable command line interfaces",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/console/tree/v5.1.9"
+ "source": "https://github.com/symfony/console/tree/v5.1.11"
},
"funding": [
{
@@ -152,17 +152,17 @@
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.20.0",
- "version_normalized": "1.20.0.0",
+ "version": "v1.22.0",
+ "version_normalized": "1.22.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41"
+ "reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41",
- "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
+ "reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
"shasum": ""
},
"require": {
@@ -171,11 +171,11 @@
"suggest": {
"ext-ctype": "For best performance"
},
- "time": "2020-10-23T14:02:19+00:00",
+ "time": "2021-01-07T16:49:33+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -214,7 +214,7 @@
"portable"
],
"support": {
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0"
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.0"
},
"funding": [
{
@@ -234,17 +234,17 @@
},
{
"name": "symfony/polyfill-intl-grapheme",
- "version": "v1.20.0",
- "version_normalized": "1.20.0.0",
+ "version": "v1.22.0",
+ "version_normalized": "1.22.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
- "reference": "c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c"
+ "reference": "267a9adeb8ecb8071040a740930e077cdfb987af"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c",
- "reference": "c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/267a9adeb8ecb8071040a740930e077cdfb987af",
+ "reference": "267a9adeb8ecb8071040a740930e077cdfb987af",
"shasum": ""
},
"require": {
@@ -253,11 +253,11 @@
"suggest": {
"ext-intl": "For best performance"
},
- "time": "2020-10-23T14:02:19+00:00",
+ "time": "2021-01-07T16:49:33+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -298,7 +298,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.20.0"
+ "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.22.0"
},
"funding": [
{
@@ -318,17 +318,17 @@
},
{
"name": "symfony/polyfill-intl-normalizer",
- "version": "v1.20.0",
- "version_normalized": "1.20.0.0",
+ "version": "v1.22.0",
+ "version_normalized": "1.22.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
- "reference": "727d1096295d807c309fb01a851577302394c897"
+ "reference": "6e971c891537eb617a00bb07a43d182a6915faba"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/727d1096295d807c309fb01a851577302394c897",
- "reference": "727d1096295d807c309fb01a851577302394c897",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/6e971c891537eb617a00bb07a43d182a6915faba",
+ "reference": "6e971c891537eb617a00bb07a43d182a6915faba",
"shasum": ""
},
"require": {
@@ -337,11 +337,11 @@
"suggest": {
"ext-intl": "For best performance"
},
- "time": "2020-10-23T14:02:19+00:00",
+ "time": "2021-01-07T17:09:11+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -385,7 +385,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.20.0"
+ "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.22.0"
},
"funding": [
{
@@ -405,17 +405,17 @@
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.20.0",
- "version_normalized": "1.20.0.0",
+ "version": "v1.22.0",
+ "version_normalized": "1.22.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "39d483bdf39be819deabf04ec872eb0b2410b531"
+ "reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/39d483bdf39be819deabf04ec872eb0b2410b531",
- "reference": "39d483bdf39be819deabf04ec872eb0b2410b531",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
+ "reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
"shasum": ""
},
"require": {
@@ -424,11 +424,11 @@
"suggest": {
"ext-mbstring": "For best performance"
},
- "time": "2020-10-23T14:02:19+00:00",
+ "time": "2021-01-07T16:49:33+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -468,7 +468,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.20.0"
+ "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.0"
},
"funding": [
{
@@ -488,27 +488,27 @@
},
{
"name": "symfony/polyfill-php73",
- "version": "v1.20.0",
- "version_normalized": "1.20.0.0",
+ "version": "v1.22.0",
+ "version_normalized": "1.22.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php73.git",
- "reference": "8ff431c517be11c78c48a39a66d37431e26a6bed"
+ "reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/8ff431c517be11c78c48a39a66d37431e26a6bed",
- "reference": "8ff431c517be11c78c48a39a66d37431e26a6bed",
+ "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/a678b42e92f86eca04b7fa4c0f6f19d097fb69e2",
+ "reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
- "time": "2020-10-23T14:02:19+00:00",
+ "time": "2021-01-07T16:49:33+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -550,7 +550,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php73/tree/v1.20.0"
+ "source": "https://github.com/symfony/polyfill-php73/tree/v1.22.0"
},
"funding": [
{
@@ -570,27 +570,27 @@
},
{
"name": "symfony/polyfill-php80",
- "version": "v1.20.0",
- "version_normalized": "1.20.0.0",
+ "version": "v1.22.0",
+ "version_normalized": "1.22.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de"
+ "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/e70aa8b064c5b72d3df2abd5ab1e90464ad009de",
- "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91",
+ "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
- "time": "2020-10-23T14:02:19+00:00",
+ "time": "2021-01-07T16:49:33+00:00",
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
@@ -636,7 +636,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php80/tree/v1.20.0"
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.22.0"
},
"funding": [
{
@@ -738,17 +738,17 @@
},
{
"name": "symfony/string",
- "version": "v5.2.0",
- "version_normalized": "5.2.0.0",
+ "version": "v5.2.3",
+ "version_normalized": "5.2.3.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "40e975edadd4e32cd16f3753b3bad65d9ac48242"
+ "reference": "c95468897f408dd0aca2ff582074423dd0455122"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/40e975edadd4e32cd16f3753b3bad65d9ac48242",
- "reference": "40e975edadd4e32cd16f3753b3bad65d9ac48242",
+ "url": "https://api.github.com/repos/symfony/string/zipball/c95468897f408dd0aca2ff582074423dd0455122",
+ "reference": "c95468897f408dd0aca2ff582074423dd0455122",
"shasum": ""
},
"require": {
@@ -765,7 +765,7 @@
"symfony/translation-contracts": "^1.1|^2",
"symfony/var-exporter": "^4.4|^5.0"
},
- "time": "2020-10-24T12:08:07+00:00",
+ "time": "2021-01-25T15:14:59+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@@ -793,7 +793,7 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony String component",
+ "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way",
"homepage": "https://symfony.com",
"keywords": [
"grapheme",
@@ -804,7 +804,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v5.2.0"
+ "source": "https://github.com/symfony/string/tree/v5.2.3"
},
"funding": [
{
@@ -824,17 +824,17 @@
},
{
"name": "typerocket/core",
- "version": "v5.0.31",
- "version_normalized": "5.0.31.0",
+ "version": "v5.0.32",
+ "version_normalized": "5.0.32.0",
"source": {
"type": "git",
"url": "https://github.com/TypeRocket/core.git",
- "reference": "f1f9b95c06dbd9afce6912b167a2a0494a598567"
+ "reference": "938ebd1727aefc3e50050f689dafb4ea3d3266e6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/TypeRocket/core/zipball/f1f9b95c06dbd9afce6912b167a2a0494a598567",
- "reference": "f1f9b95c06dbd9afce6912b167a2a0494a598567",
+ "url": "https://api.github.com/repos/TypeRocket/core/zipball/938ebd1727aefc3e50050f689dafb4ea3d3266e6",
+ "reference": "938ebd1727aefc3e50050f689dafb4ea3d3266e6",
"shasum": ""
},
"require": {
@@ -845,7 +845,7 @@
"require-dev": {
"phpunit/phpunit": "8.5.*"
},
- "time": "2020-12-17T22:04:12+00:00",
+ "time": "2021-02-09T21:11:48+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@@ -874,7 +874,7 @@
"support": {
"docs": "https://typerocket.com/docs/v5/",
"issues": "https://github.com/TypeRocket/core/issues",
- "source": "https://github.com/TypeRocket/core/tree/v5.0.31"
+ "source": "https://github.com/TypeRocket/core/tree/v5.0.32"
},
"install-path": "../typerocket/core"
}
diff --git a/typerocket/vendor/composer/installed.php b/typerocket/vendor/composer/installed.php
index c7bec526..5223782e 100644
--- a/typerocket/vendor/composer/installed.php
+++ b/typerocket/vendor/composer/installed.php
@@ -6,7 +6,7 @@
'aliases' =>
array (
),
- 'reference' => '3cad5d93d625abe1fda402d7dae40c45cfbfdad1',
+ 'reference' => '42dd174b82fe371b53b3622a89dd6fc32796366d',
'name' => 'typerocket/typerocket',
),
'versions' =>
@@ -29,66 +29,66 @@
),
'symfony/console' =>
array (
- 'pretty_version' => 'v5.1.9',
- 'version' => '5.1.9.0',
+ 'pretty_version' => 'v5.1.11',
+ 'version' => '5.1.11.0',
'aliases' =>
array (
),
- 'reference' => '037b57ac42cafb64b7b55273fe1786f35d623077',
+ 'reference' => 'd9a267b621c5082e0a6c659d73633b6fd28a8a08',
),
'symfony/polyfill-ctype' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => 'f4ba089a5b6366e453971d3aad5fe8e897b37f41',
+ 'reference' => 'c6c942b1ac76c82448322025e084cadc56048b4e',
),
'symfony/polyfill-intl-grapheme' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => 'c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c',
+ 'reference' => '267a9adeb8ecb8071040a740930e077cdfb987af',
),
'symfony/polyfill-intl-normalizer' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => '727d1096295d807c309fb01a851577302394c897',
+ 'reference' => '6e971c891537eb617a00bb07a43d182a6915faba',
),
'symfony/polyfill-mbstring' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => '39d483bdf39be819deabf04ec872eb0b2410b531',
+ 'reference' => 'f377a3dd1fde44d37b9831d68dc8dea3ffd28e13',
),
'symfony/polyfill-php73' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => '8ff431c517be11c78c48a39a66d37431e26a6bed',
+ 'reference' => 'a678b42e92f86eca04b7fa4c0f6f19d097fb69e2',
),
'symfony/polyfill-php80' =>
array (
- 'pretty_version' => 'v1.20.0',
- 'version' => '1.20.0.0',
+ 'pretty_version' => 'v1.22.0',
+ 'version' => '1.22.0.0',
'aliases' =>
array (
),
- 'reference' => 'e70aa8b064c5b72d3df2abd5ab1e90464ad009de',
+ 'reference' => 'dc3063ba22c2a1fd2f45ed856374d79114998f91',
),
'symfony/service-contracts' =>
array (
@@ -101,21 +101,21 @@
),
'symfony/string' =>
array (
- 'pretty_version' => 'v5.2.0',
- 'version' => '5.2.0.0',
+ 'pretty_version' => 'v5.2.3',
+ 'version' => '5.2.3.0',
'aliases' =>
array (
),
- 'reference' => '40e975edadd4e32cd16f3753b3bad65d9ac48242',
+ 'reference' => 'c95468897f408dd0aca2ff582074423dd0455122',
),
'typerocket/core' =>
array (
- 'pretty_version' => 'v5.0.31',
- 'version' => '5.0.31.0',
+ 'pretty_version' => 'v5.0.32',
+ 'version' => '5.0.32.0',
'aliases' =>
array (
),
- 'reference' => 'f1f9b95c06dbd9afce6912b167a2a0494a598567',
+ 'reference' => '938ebd1727aefc3e50050f689dafb4ea3d3266e6',
),
'typerocket/typerocket' =>
array (
@@ -124,7 +124,7 @@
'aliases' =>
array (
),
- 'reference' => '3cad5d93d625abe1fda402d7dae40c45cfbfdad1',
+ 'reference' => '42dd174b82fe371b53b3622a89dd6fc32796366d',
),
),
);
diff --git a/typerocket/vendor/symfony/console/Application.php b/typerocket/vendor/symfony/console/Application.php
index 784af89b..4973a26b 100644
--- a/typerocket/vendor/symfony/console/Application.php
+++ b/typerocket/vendor/symfony/console/Application.php
@@ -836,11 +836,11 @@ protected function doRenderThrowable(\Throwable $e, OutputInterface $output): vo
]);
for ($i = 0, $count = \count($trace); $i < $count; ++$i) {
- $class = isset($trace[$i]['class']) ? $trace[$i]['class'] : '';
- $type = isset($trace[$i]['type']) ? $trace[$i]['type'] : '';
- $function = isset($trace[$i]['function']) ? $trace[$i]['function'] : '';
- $file = isset($trace[$i]['file']) ? $trace[$i]['file'] : 'n/a';
- $line = isset($trace[$i]['line']) ? $trace[$i]['line'] : 'n/a';
+ $class = $trace[$i]['class'] ?? '';
+ $type = $trace[$i]['type'] ?? '';
+ $function = $trace[$i]['function'] ?? '';
+ $file = $trace[$i]['file'] ?? 'n/a';
+ $line = $trace[$i]['line'] ?? 'n/a';
$output->writeln(sprintf(' %s%s at %s:%s', $class, $function ? $type.$function.'()' : '', $file, $line), OutputInterface::VERBOSITY_QUIET);
}
diff --git a/typerocket/vendor/symfony/console/CHANGELOG.md b/typerocket/vendor/symfony/console/CHANGELOG.md
index 788bf427..3a1e3770 100644
--- a/typerocket/vendor/symfony/console/CHANGELOG.md
+++ b/typerocket/vendor/symfony/console/CHANGELOG.md
@@ -70,9 +70,9 @@ CHANGELOG
* `OutputFormatter` throws an exception when unknown options are used
* removed `QuestionHelper::setInputStream()/getInputStream()`
* removed `Application::getTerminalWidth()/getTerminalHeight()` and
- `Application::setTerminalDimensions()/getTerminalDimensions()`
-* removed `ConsoleExceptionEvent`
-* removed `ConsoleEvents::EXCEPTION`
+ `Application::setTerminalDimensions()/getTerminalDimensions()`
+ * removed `ConsoleExceptionEvent`
+ * removed `ConsoleEvents::EXCEPTION`
3.4.0
-----
@@ -89,23 +89,23 @@ CHANGELOG
3.3.0
-----
-* added `ExceptionListener`
-* added `AddConsoleCommandPass` (originally in FrameworkBundle)
-* [BC BREAK] `Input::getOption()` no longer returns the default value for options
- with value optional explicitly passed empty
-* added console.error event to catch exceptions thrown by other listeners
-* deprecated console.exception event in favor of console.error
-* added ability to handle `CommandNotFoundException` through the
- `console.error` event
-* deprecated default validation in `SymfonyQuestionHelper::ask`
+ * added `ExceptionListener`
+ * added `AddConsoleCommandPass` (originally in FrameworkBundle)
+ * [BC BREAK] `Input::getOption()` no longer returns the default value for options
+ with value optional explicitly passed empty
+ * added console.error event to catch exceptions thrown by other listeners
+ * deprecated console.exception event in favor of console.error
+ * added ability to handle `CommandNotFoundException` through the
+ `console.error` event
+ * deprecated default validation in `SymfonyQuestionHelper::ask`
3.2.0
------
-* added `setInputs()` method to CommandTester for ease testing of commands expecting inputs
-* added `setStream()` and `getStream()` methods to Input (implement StreamableInputInterface)
-* added StreamableInputInterface
-* added LockableTrait
+ * added `setInputs()` method to CommandTester for ease testing of commands expecting inputs
+ * added `setStream()` and `getStream()` methods to Input (implement StreamableInputInterface)
+ * added StreamableInputInterface
+ * added LockableTrait
3.1.0
-----
diff --git a/typerocket/vendor/symfony/console/Command/Command.php b/typerocket/vendor/symfony/console/Command/Command.php
index bcb86cdf..3b24ab72 100644
--- a/typerocket/vendor/symfony/console/Command/Command.php
+++ b/typerocket/vendor/symfony/console/Command/Command.php
@@ -29,6 +29,7 @@
*/
class Command
{
+ // see https://tldp.org/LDP/abs/html/exitcodes.html
public const SUCCESS = 0;
public const FAILURE = 1;
@@ -284,7 +285,14 @@ public function setCode(callable $code)
if ($code instanceof \Closure) {
$r = new \ReflectionFunction($code);
if (null === $r->getClosureThis()) {
- $code = \Closure::bind($code, $this);
+ set_error_handler(static function () {});
+ try {
+ if ($c = \Closure::bind($code, $this)) {
+ $code = $c;
+ }
+ } finally {
+ restore_error_handler();
+ }
}
}
diff --git a/typerocket/vendor/symfony/console/ConsoleEvents.php b/typerocket/vendor/symfony/console/ConsoleEvents.php
index 4975643a..99b423c8 100644
--- a/typerocket/vendor/symfony/console/ConsoleEvents.php
+++ b/typerocket/vendor/symfony/console/ConsoleEvents.php
@@ -21,11 +21,11 @@ final class ConsoleEvents
/**
* The COMMAND event allows you to attach listeners before any command is
* executed by the console. It also allows you to modify the command, input and output
- * before they are handled to the command.
+ * before they are handed to the command.
*
* @Event("Symfony\Component\Console\Event\ConsoleCommandEvent")
*/
- const COMMAND = 'console.command';
+ public const COMMAND = 'console.command';
/**
* The TERMINATE event allows you to attach listeners after a command is
@@ -33,7 +33,7 @@ final class ConsoleEvents
*
* @Event("Symfony\Component\Console\Event\ConsoleTerminateEvent")
*/
- const TERMINATE = 'console.terminate';
+ public const TERMINATE = 'console.terminate';
/**
* The ERROR event occurs when an uncaught exception or error appears.
@@ -43,5 +43,5 @@ final class ConsoleEvents
*
* @Event("Symfony\Component\Console\Event\ConsoleErrorEvent")
*/
- const ERROR = 'console.error';
+ public const ERROR = 'console.error';
}
diff --git a/typerocket/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php b/typerocket/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php
index f4cd3874..77ae6f9d 100644
--- a/typerocket/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php
+++ b/typerocket/vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php
@@ -29,12 +29,14 @@ class AddConsoleCommandPass implements CompilerPassInterface
private $commandLoaderServiceId;
private $commandTag;
private $noPreloadTag;
+ private $privateTagName;
- public function __construct(string $commandLoaderServiceId = 'console.command_loader', string $commandTag = 'console.command', string $noPreloadTag = 'container.no_preload')
+ public function __construct(string $commandLoaderServiceId = 'console.command_loader', string $commandTag = 'console.command', string $noPreloadTag = 'container.no_preload', string $privateTagName = 'container.private')
{
$this->commandLoaderServiceId = $commandLoaderServiceId;
$this->commandTag = $commandTag;
$this->noPreloadTag = $noPreloadTag;
+ $this->privateTagName = $privateTagName;
}
public function process(ContainerBuilder $container)
@@ -62,7 +64,7 @@ public function process(ContainerBuilder $container)
}
if (null === $commandName) {
- if (!$definition->isPublic() || $definition->isPrivate()) {
+ if (!$definition->isPublic() || $definition->isPrivate() || $definition->hasTag($this->privateTagName)) {
$commandId = 'console.command.public_alias.'.$id;
$container->setAlias($commandId, $id)->setPublic(true);
$id = $commandId;
diff --git a/typerocket/vendor/symfony/console/Descriptor/ApplicationDescription.php b/typerocket/vendor/symfony/console/Descriptor/ApplicationDescription.php
index d361b489..3970b900 100644
--- a/typerocket/vendor/symfony/console/Descriptor/ApplicationDescription.php
+++ b/typerocket/vendor/symfony/console/Descriptor/ApplicationDescription.php
@@ -22,7 +22,7 @@
*/
class ApplicationDescription
{
- const GLOBAL_NAMESPACE = '_global';
+ public const GLOBAL_NAMESPACE = '_global';
private $application;
private $namespace;
@@ -80,7 +80,7 @@ public function getCommand(string $name): Command
throw new CommandNotFoundException(sprintf('Command "%s" does not exist.', $name));
}
- return isset($this->commands[$name]) ? $this->commands[$name] : $this->aliases[$name];
+ return $this->commands[$name] ?? $this->aliases[$name];
}
private function inspectApplication()
diff --git a/typerocket/vendor/symfony/console/Descriptor/JsonDescriptor.php b/typerocket/vendor/symfony/console/Descriptor/JsonDescriptor.php
index 5ba588ee..4c09e126 100644
--- a/typerocket/vendor/symfony/console/Descriptor/JsonDescriptor.php
+++ b/typerocket/vendor/symfony/console/Descriptor/JsonDescriptor.php
@@ -63,7 +63,7 @@ protected function describeCommand(Command $command, array $options = [])
*/
protected function describeApplication(Application $application, array $options = [])
{
- $describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
+ $describedNamespace = $options['namespace'] ?? null;
$description = new ApplicationDescription($application, $describedNamespace, true);
$commands = [];
@@ -95,7 +95,7 @@ protected function describeApplication(Application $application, array $options
*/
private function writeData(array $data, array $options)
{
- $flags = isset($options['json_encoding']) ? $options['json_encoding'] : 0;
+ $flags = $options['json_encoding'] ?? 0;
$this->write(json_encode($data, $flags));
}
diff --git a/typerocket/vendor/symfony/console/Descriptor/MarkdownDescriptor.php b/typerocket/vendor/symfony/console/Descriptor/MarkdownDescriptor.php
index 8b3e182e..60caa330 100644
--- a/typerocket/vendor/symfony/console/Descriptor/MarkdownDescriptor.php
+++ b/typerocket/vendor/symfony/console/Descriptor/MarkdownDescriptor.php
@@ -147,7 +147,7 @@ protected function describeCommand(Command $command, array $options = [])
*/
protected function describeApplication(Application $application, array $options = [])
{
- $describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
+ $describedNamespace = $options['namespace'] ?? null;
$description = new ApplicationDescription($application, $describedNamespace);
$title = $this->getApplicationTitle($application);
diff --git a/typerocket/vendor/symfony/console/Descriptor/TextDescriptor.php b/typerocket/vendor/symfony/console/Descriptor/TextDescriptor.php
index 05a32443..1db3686b 100644
--- a/typerocket/vendor/symfony/console/Descriptor/TextDescriptor.php
+++ b/typerocket/vendor/symfony/console/Descriptor/TextDescriptor.php
@@ -39,7 +39,7 @@ protected function describeInputArgument(InputArgument $argument, array $options
$default = '';
}
- $totalWidth = isset($options['total_width']) ? $options['total_width'] : Helper::strlen($argument->getName());
+ $totalWidth = $options['total_width'] ?? Helper::strlen($argument->getName());
$spacingWidth = $totalWidth - \strlen($argument->getName());
$this->writeText(sprintf(' %s %s%s%s',
@@ -71,7 +71,7 @@ protected function describeInputOption(InputOption $option, array $options = [])
}
}
- $totalWidth = isset($options['total_width']) ? $options['total_width'] : $this->calculateTotalWidthForOptions([$option]);
+ $totalWidth = $options['total_width'] ?? $this->calculateTotalWidthForOptions([$option]);
$synopsis = sprintf('%s%s',
$option->getShortcut() ? sprintf('-%s, ', $option->getShortcut()) : ' ',
sprintf('--%s%s', $option->getName(), $value)
@@ -176,7 +176,7 @@ protected function describeCommand(Command $command, array $options = [])
*/
protected function describeApplication(Application $application, array $options = [])
{
- $describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
+ $describedNamespace = $options['namespace'] ?? null;
$description = new ApplicationDescription($application, $describedNamespace);
if (isset($options['raw_text']) && $options['raw_text']) {
diff --git a/typerocket/vendor/symfony/console/Descriptor/XmlDescriptor.php b/typerocket/vendor/symfony/console/Descriptor/XmlDescriptor.php
index 3d5dce1d..a6288d44 100644
--- a/typerocket/vendor/symfony/console/Descriptor/XmlDescriptor.php
+++ b/typerocket/vendor/symfony/console/Descriptor/XmlDescriptor.php
@@ -152,7 +152,7 @@ protected function describeCommand(Command $command, array $options = [])
*/
protected function describeApplication(Application $application, array $options = [])
{
- $this->writeDocument($this->getApplicationDocument($application, isset($options['namespace']) ? $options['namespace'] : null));
+ $this->writeDocument($this->getApplicationDocument($application, $options['namespace'] ?? null));
}
/**
diff --git a/typerocket/vendor/symfony/console/Event/ConsoleCommandEvent.php b/typerocket/vendor/symfony/console/Event/ConsoleCommandEvent.php
index a24697cd..08bd18fd 100644
--- a/typerocket/vendor/symfony/console/Event/ConsoleCommandEvent.php
+++ b/typerocket/vendor/symfony/console/Event/ConsoleCommandEvent.php
@@ -21,7 +21,7 @@ final class ConsoleCommandEvent extends ConsoleEvent
/**
* The return code for skipped commands, this will also be passed into the terminate event.
*/
- const RETURN_CODE_DISABLED = 113;
+ public const RETURN_CODE_DISABLED = 113;
/**
* Indicates if the command should be run or skipped.
diff --git a/typerocket/vendor/symfony/console/Formatter/OutputFormatter.php b/typerocket/vendor/symfony/console/Formatter/OutputFormatter.php
index 4ad24886..52ca2327 100644
--- a/typerocket/vendor/symfony/console/Formatter/OutputFormatter.php
+++ b/typerocket/vendor/symfony/console/Formatter/OutputFormatter.php
@@ -161,7 +161,7 @@ public function formatAndWrap(?string $message, int $width)
if ($open = '/' != $text[1]) {
$tag = $matches[1][$i][0];
} else {
- $tag = isset($matches[3][$i][0]) ? $matches[3][$i][0] : '';
+ $tag = $matches[3][$i][0] ?? '';
}
if (!$open && !$tag) {
diff --git a/typerocket/vendor/symfony/console/Formatter/OutputFormatterStyle.php b/typerocket/vendor/symfony/console/Formatter/OutputFormatterStyle.php
index b1291cb0..46c7cfc2 100644
--- a/typerocket/vendor/symfony/console/Formatter/OutputFormatterStyle.php
+++ b/typerocket/vendor/symfony/console/Formatter/OutputFormatterStyle.php
@@ -166,7 +166,8 @@ public function apply(string $text)
$unsetCodes = [];
if (null === $this->handlesHrefGracefully) {
- $this->handlesHrefGracefully = 'JetBrains-JediTerm' !== getenv('TERMINAL_EMULATOR') && !getenv('KONSOLE_VERSION');
+ $this->handlesHrefGracefully = 'JetBrains-JediTerm' !== getenv('TERMINAL_EMULATOR')
+ && (!getenv('KONSOLE_VERSION') || (int) getenv('KONSOLE_VERSION') > 201100);
}
if (null !== $this->foreground) {
diff --git a/typerocket/vendor/symfony/console/Helper/ProgressBar.php b/typerocket/vendor/symfony/console/Helper/ProgressBar.php
index 3fce6886..09388dbf 100644
--- a/typerocket/vendor/symfony/console/Helper/ProgressBar.php
+++ b/typerocket/vendor/symfony/console/Helper/ProgressBar.php
@@ -113,7 +113,7 @@ public static function getPlaceholderFormatterDefinition(string $name): ?callabl
self::$formatters = self::initPlaceholderFormatters();
}
- return isset(self::$formatters[$name]) ? self::$formatters[$name] : null;
+ return self::$formatters[$name] ?? null;
}
/**
@@ -146,7 +146,7 @@ public static function getFormatDefinition(string $name): ?string
self::$formats = self::initFormats();
}
- return isset(self::$formats[$name]) ? self::$formats[$name] : null;
+ return self::$formats[$name] ?? null;
}
/**
diff --git a/typerocket/vendor/symfony/console/Helper/ProgressIndicator.php b/typerocket/vendor/symfony/console/Helper/ProgressIndicator.php
index 81cb783e..491a537e 100644
--- a/typerocket/vendor/symfony/console/Helper/ProgressIndicator.php
+++ b/typerocket/vendor/symfony/console/Helper/ProgressIndicator.php
@@ -142,7 +142,7 @@ public static function getFormatDefinition(string $name)
self::$formats = self::initFormats();
}
- return isset(self::$formats[$name]) ? self::$formats[$name] : null;
+ return self::$formats[$name] ?? null;
}
/**
@@ -170,7 +170,7 @@ public static function getPlaceholderFormatterDefinition(string $name)
self::$formatters = self::initPlaceholderFormatters();
}
- return isset(self::$formatters[$name]) ? self::$formatters[$name] : null;
+ return self::$formatters[$name] ?? null;
}
private function display()
diff --git a/typerocket/vendor/symfony/console/Helper/QuestionHelper.php b/typerocket/vendor/symfony/console/Helper/QuestionHelper.php
index 1d3483a3..08755846 100644
--- a/typerocket/vendor/symfony/console/Helper/QuestionHelper.php
+++ b/typerocket/vendor/symfony/console/Helper/QuestionHelper.php
@@ -172,13 +172,13 @@ private function getDefaultAnswer(Question $question)
$choices = $question->getChoices();
if (!$question->isMultiselect()) {
- return isset($choices[$default]) ? $choices[$default] : $default;
+ return $choices[$default] ?? $default;
}
$default = explode(',', $default);
foreach ($default as $k => $v) {
$v = $question->isTrimmable() ? trim($v) : $v;
- $default[$k] = isset($choices[$v]) ? $choices[$v] : $v;
+ $default[$k] = $choices[$v] ?? $v;
}
}
diff --git a/typerocket/vendor/symfony/console/Helper/SymfonyQuestionHelper.php b/typerocket/vendor/symfony/console/Helper/SymfonyQuestionHelper.php
index e4e87b2f..ace5e186 100644
--- a/typerocket/vendor/symfony/console/Helper/SymfonyQuestionHelper.php
+++ b/typerocket/vendor/symfony/console/Helper/SymfonyQuestionHelper.php
@@ -58,7 +58,7 @@ protected function writePrompt(OutputInterface $output, Question $question)
case $question instanceof ChoiceQuestion:
$choices = $question->getChoices();
- $text = sprintf(' %s [%s]:', $text, OutputFormatter::escape(isset($choices[$default]) ? $choices[$default] : $default));
+ $text = sprintf(' %s [%s]:', $text, OutputFormatter::escape($choices[$default] ?? $default));
break;
diff --git a/typerocket/vendor/symfony/console/Helper/Table.php b/typerocket/vendor/symfony/console/Helper/Table.php
index 21848e65..fd4d05c7 100644
--- a/typerocket/vendor/symfony/console/Helper/Table.php
+++ b/typerocket/vendor/symfony/console/Helper/Table.php
@@ -491,7 +491,7 @@ private function renderRow(array $row, string $cellFormat, string $firstCellForm
*/
private function renderCell(array $row, int $column, string $cellFormat): string
{
- $cell = isset($row[$column]) ? $row[$column] : '';
+ $cell = $row[$column] ?? '';
$width = $this->effectiveColumnWidths[$column];
if ($cell instanceof TableCell && $cell->getColspan() > 1) {
// add the width of the following columns(numbers of colspan).
@@ -625,7 +625,7 @@ private function fillNextRows(array $rows, int $line): array
// create a two dimensional array (rowspan x colspan)
$unmergedRows = array_replace_recursive(array_fill($line + 1, $nbLines, []), $unmergedRows);
foreach ($unmergedRows as $unmergedRowKey => $unmergedRow) {
- $value = isset($lines[$unmergedRowKey - $line]) ? $lines[$unmergedRowKey - $line] : '';
+ $value = $lines[$unmergedRowKey - $line] ?? '';
$unmergedRows[$unmergedRowKey][$column] = new TableCell($value, ['colspan' => $cell->getColspan()]);
if ($nbLines === $unmergedRowKey - $line) {
break;
@@ -763,7 +763,7 @@ private function getCellWidth(array $row, int $column): int
$cellWidth = Helper::strlenWithoutDecoration($this->output->getFormatter(), $cell);
}
- $columnWidth = isset($this->columnWidths[$column]) ? $this->columnWidths[$column] : 0;
+ $columnWidth = $this->columnWidths[$column] ?? 0;
$cellWidth = max($cellWidth, $columnWidth);
return isset($this->columnMaxWidths[$column]) ? min($this->columnMaxWidths[$column], $cellWidth) : $cellWidth;
diff --git a/typerocket/vendor/symfony/console/Input/Input.php b/typerocket/vendor/symfony/console/Input/Input.php
index ff5d3170..dd765809 100644
--- a/typerocket/vendor/symfony/console/Input/Input.php
+++ b/typerocket/vendor/symfony/console/Input/Input.php
@@ -110,7 +110,7 @@ public function getArgument(string $name)
throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
}
- return isset($this->arguments[$name]) ? $this->arguments[$name] : $this->definition->getArgument($name)->getDefault();
+ return $this->arguments[$name] ?? $this->definition->getArgument($name)->getDefault();
}
/**
diff --git a/typerocket/vendor/symfony/console/Input/InputArgument.php b/typerocket/vendor/symfony/console/Input/InputArgument.php
index b6aa6452..140c86d0 100644
--- a/typerocket/vendor/symfony/console/Input/InputArgument.php
+++ b/typerocket/vendor/symfony/console/Input/InputArgument.php
@@ -21,9 +21,9 @@
*/
class InputArgument
{
- const REQUIRED = 1;
- const OPTIONAL = 2;
- const IS_ARRAY = 4;
+ public const REQUIRED = 1;
+ public const OPTIONAL = 2;
+ public const IS_ARRAY = 4;
private $name;
private $mode;
diff --git a/typerocket/vendor/symfony/console/Input/InputOption.php b/typerocket/vendor/symfony/console/Input/InputOption.php
index d62e0aea..66f857a6 100644
--- a/typerocket/vendor/symfony/console/Input/InputOption.php
+++ b/typerocket/vendor/symfony/console/Input/InputOption.php
@@ -21,10 +21,10 @@
*/
class InputOption
{
- const VALUE_NONE = 1;
- const VALUE_REQUIRED = 2;
- const VALUE_OPTIONAL = 4;
- const VALUE_IS_ARRAY = 8;
+ public const VALUE_NONE = 1;
+ public const VALUE_REQUIRED = 2;
+ public const VALUE_OPTIONAL = 4;
+ public const VALUE_IS_ARRAY = 8;
private $name;
private $shortcut;
diff --git a/typerocket/vendor/symfony/console/Input/StringInput.php b/typerocket/vendor/symfony/console/Input/StringInput.php
index 6fddf648..2890b0f5 100644
--- a/typerocket/vendor/symfony/console/Input/StringInput.php
+++ b/typerocket/vendor/symfony/console/Input/StringInput.php
@@ -24,8 +24,8 @@
*/
class StringInput extends ArgvInput
{
- const REGEX_STRING = '([^\s]+?)(?:\s|(?askQuestion(new ChoiceQuestion($question, $choices, $default));
diff --git a/typerocket/vendor/symfony/console/Tester/TesterTrait.php b/typerocket/vendor/symfony/console/Tester/TesterTrait.php
index 4a344ca2..60120657 100644
--- a/typerocket/vendor/symfony/console/Tester/TesterTrait.php
+++ b/typerocket/vendor/symfony/console/Tester/TesterTrait.php
@@ -139,8 +139,8 @@ private function initOutput(array $options)
}
} else {
$this->output = new ConsoleOutput(
- isset($options['verbosity']) ? $options['verbosity'] : ConsoleOutput::VERBOSITY_NORMAL,
- isset($options['decorated']) ? $options['decorated'] : null
+ $options['verbosity'] ?? ConsoleOutput::VERBOSITY_NORMAL,
+ $options['decorated'] ?? null
);
$errorOutput = new StreamOutput(fopen('php://memory', 'w', false));
diff --git a/typerocket/vendor/symfony/console/composer.json b/typerocket/vendor/symfony/console/composer.json
index 53db1067..f75c9bf2 100644
--- a/typerocket/vendor/symfony/console/composer.json
+++ b/typerocket/vendor/symfony/console/composer.json
@@ -1,7 +1,7 @@
{
"name": "symfony/console",
"type": "library",
- "description": "Symfony Console Component",
+ "description": "Eases the creation of beautiful and testable command line interfaces",
"keywords": [],
"homepage": "https://symfony.com",
"license": "MIT",
diff --git a/typerocket/vendor/symfony/polyfill-ctype/bootstrap.php b/typerocket/vendor/symfony/polyfill-ctype/bootstrap.php
index 0bc45cfd..d54524b3 100644
--- a/typerocket/vendor/symfony/polyfill-ctype/bootstrap.php
+++ b/typerocket/vendor/symfony/polyfill-ctype/bootstrap.php
@@ -11,36 +11,40 @@
use Symfony\Polyfill\Ctype as p;
+if (\PHP_VERSION_ID >= 80000) {
+ return require __DIR__.'/bootstrap80.php';
+}
+
if (!function_exists('ctype_alnum')) {
- function ctype_alnum($input) { return p\Ctype::ctype_alnum($input); }
+ function ctype_alnum($text) { return p\Ctype::ctype_alnum($text); }
}
if (!function_exists('ctype_alpha')) {
- function ctype_alpha($input) { return p\Ctype::ctype_alpha($input); }
+ function ctype_alpha($text) { return p\Ctype::ctype_alpha($text); }
}
if (!function_exists('ctype_cntrl')) {
- function ctype_cntrl($input) { return p\Ctype::ctype_cntrl($input); }
+ function ctype_cntrl($text) { return p\Ctype::ctype_cntrl($text); }
}
if (!function_exists('ctype_digit')) {
- function ctype_digit($input) { return p\Ctype::ctype_digit($input); }
+ function ctype_digit($text) { return p\Ctype::ctype_digit($text); }
}
if (!function_exists('ctype_graph')) {
- function ctype_graph($input) { return p\Ctype::ctype_graph($input); }
+ function ctype_graph($text) { return p\Ctype::ctype_graph($text); }
}
if (!function_exists('ctype_lower')) {
- function ctype_lower($input) { return p\Ctype::ctype_lower($input); }
+ function ctype_lower($text) { return p\Ctype::ctype_lower($text); }
}
if (!function_exists('ctype_print')) {
- function ctype_print($input) { return p\Ctype::ctype_print($input); }
+ function ctype_print($text) { return p\Ctype::ctype_print($text); }
}
if (!function_exists('ctype_punct')) {
- function ctype_punct($input) { return p\Ctype::ctype_punct($input); }
+ function ctype_punct($text) { return p\Ctype::ctype_punct($text); }
}
if (!function_exists('ctype_space')) {
- function ctype_space($input) { return p\Ctype::ctype_space($input); }
+ function ctype_space($text) { return p\Ctype::ctype_space($text); }
}
if (!function_exists('ctype_upper')) {
- function ctype_upper($input) { return p\Ctype::ctype_upper($input); }
+ function ctype_upper($text) { return p\Ctype::ctype_upper($text); }
}
if (!function_exists('ctype_xdigit')) {
- function ctype_xdigit($input) { return p\Ctype::ctype_xdigit($input); }
+ function ctype_xdigit($text) { return p\Ctype::ctype_xdigit($text); }
}
diff --git a/typerocket/vendor/symfony/polyfill-ctype/bootstrap80.php b/typerocket/vendor/symfony/polyfill-ctype/bootstrap80.php
new file mode 100644
index 00000000..ab2f8611
--- /dev/null
+++ b/typerocket/vendor/symfony/polyfill-ctype/bootstrap80.php
@@ -0,0 +1,46 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Ctype as p;
+
+if (!function_exists('ctype_alnum')) {
+ function ctype_alnum(mixed $text): bool { return p\Ctype::ctype_alnum($text); }
+}
+if (!function_exists('ctype_alpha')) {
+ function ctype_alpha(mixed $text): bool { return p\Ctype::ctype_alpha($text); }
+}
+if (!function_exists('ctype_cntrl')) {
+ function ctype_cntrl(mixed $text): bool { return p\Ctype::ctype_cntrl($text); }
+}
+if (!function_exists('ctype_digit')) {
+ function ctype_digit(mixed $text): bool { return p\Ctype::ctype_digit($text); }
+}
+if (!function_exists('ctype_graph')) {
+ function ctype_graph(mixed $text): bool { return p\Ctype::ctype_graph($text); }
+}
+if (!function_exists('ctype_lower')) {
+ function ctype_lower(mixed $text): bool { return p\Ctype::ctype_lower($text); }
+}
+if (!function_exists('ctype_print')) {
+ function ctype_print(mixed $text): bool { return p\Ctype::ctype_print($text); }
+}
+if (!function_exists('ctype_punct')) {
+ function ctype_punct(mixed $text): bool { return p\Ctype::ctype_punct($text); }
+}
+if (!function_exists('ctype_space')) {
+ function ctype_space(mixed $text): bool { return p\Ctype::ctype_space($text); }
+}
+if (!function_exists('ctype_upper')) {
+ function ctype_upper(mixed $text): bool { return p\Ctype::ctype_upper($text); }
+}
+if (!function_exists('ctype_xdigit')) {
+ function ctype_xdigit(mixed $text): bool { return p\Ctype::ctype_xdigit($text); }
+}
diff --git a/typerocket/vendor/symfony/polyfill-ctype/composer.json b/typerocket/vendor/symfony/polyfill-ctype/composer.json
index 2088bb9f..995978c0 100644
--- a/typerocket/vendor/symfony/polyfill-ctype/composer.json
+++ b/typerocket/vendor/symfony/polyfill-ctype/composer.json
@@ -28,7 +28,7 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
diff --git a/typerocket/vendor/symfony/polyfill-intl-grapheme/Grapheme.php b/typerocket/vendor/symfony/polyfill-intl-grapheme/Grapheme.php
index 388a1f10..b42df8e5 100644
--- a/typerocket/vendor/symfony/polyfill-intl-grapheme/Grapheme.php
+++ b/typerocket/vendor/symfony/polyfill-intl-grapheme/Grapheme.php
@@ -11,7 +11,7 @@
namespace Symfony\Polyfill\Intl\Grapheme;
-\define('SYMFONY_GRAPHEME_CLUSTER_RX', PCRE_VERSION >= '8.32' ? '\X' : Grapheme::GRAPHEME_CLUSTER_RX);
+\define('SYMFONY_GRAPHEME_CLUSTER_RX', \PCRE_VERSION >= '8.32' ? '\X' : Grapheme::GRAPHEME_CLUSTER_RX);
/**
* Partial intl implementation in pure PHP.
@@ -35,15 +35,15 @@ final class Grapheme
{
// (CRLF|([ZWNJ-ZWJ]|T+|L*(LV?V+|LV|LVT)T*|L+|[^Control])[Extend]*|[Control])
// This regular expression is a work around for http://bugs.exim.org/1279
- const GRAPHEME_CLUSTER_RX = '(?:\r\n|(?:[ -~\x{200C}\x{200D}]|[ᆨ-ᇹ]+|[ᄀ-ᅟ]*(?:[가개갸걔거게겨계고과괘괴교구궈궤귀규그긔기까깨꺄꺠꺼께껴꼐꼬꽈꽤꾀꾜꾸꿔꿰뀌뀨끄끠끼나내냐냬너네녀녜노놔놰뇌뇨누눠눼뉘뉴느늬니다대댜댸더데뎌뎨도돠돼되됴두둬뒈뒤듀드듸디따때땨떄떠떼뗘뗴또똬뙈뙤뚀뚜뚸뛔뛰뜌뜨띄띠라래랴럐러레려례로롸뢔뢰료루뤄뤠뤼류르릐리마매먀먜머메며몌모뫄뫠뫼묘무뭐뭬뮈뮤므믜미바배뱌뱨버베벼볘보봐봬뵈뵤부붜붸뷔뷰브븨비빠빼뺘뺴뻐뻬뼈뼤뽀뽜뽸뾔뾰뿌뿨쀄쀠쀼쁘쁴삐사새샤섀서세셔셰소솨쇄쇠쇼수숴쉐쉬슈스싀시싸쌔쌰썌써쎄쎠쎼쏘쏴쐐쐬쑈쑤쒀쒜쒸쓔쓰씌씨아애야얘어에여예오와왜외요우워웨위유으의이자재쟈쟤저제져졔조좌좨죄죠주줘줴쥐쥬즈즤지짜째쨔쨰쩌쩨쪄쪠쪼쫘쫴쬐쬬쭈쭤쮀쮜쮸쯔쯰찌차채챠챼처체쳐쳬초촤쵀최쵸추춰췌취츄츠츼치카캐캬컈커케켜켸코콰쾌쾨쿄쿠쿼퀘퀴큐크킈키타태탸턔터테텨톄토톼퇘퇴툐투퉈퉤튀튜트틔티파패퍄퍠퍼페펴폐포퐈퐤푀표푸풔풰퓌퓨프픠피하해햐햬허헤혀혜호화홰회효후훠훼휘휴흐희히]?[ᅠ-ᆢ]+|[가-힣])[ᆨ-ᇹ]*|[ᄀ-ᅟ]+|[^\p{Cc}\p{Cf}\p{Zl}\p{Zp}])[\p{Mn}\p{Me}\x{09BE}\x{09D7}\x{0B3E}\x{0B57}\x{0BBE}\x{0BD7}\x{0CC2}\x{0CD5}\x{0CD6}\x{0D3E}\x{0D57}\x{0DCF}\x{0DDF}\x{200C}\x{200D}\x{1D165}\x{1D16E}-\x{1D172}]*|[\p{Cc}\p{Cf}\p{Zl}\p{Zp}])';
+ public const GRAPHEME_CLUSTER_RX = '(?:\r\n|(?:[ -~\x{200C}\x{200D}]|[ᆨ-ᇹ]+|[ᄀ-ᅟ]*(?:[가개갸걔거게겨계고과괘괴교구궈궤귀규그긔기까깨꺄꺠꺼께껴꼐꼬꽈꽤꾀꾜꾸꿔꿰뀌뀨끄끠끼나내냐냬너네녀녜노놔놰뇌뇨누눠눼뉘뉴느늬니다대댜댸더데뎌뎨도돠돼되됴두둬뒈뒤듀드듸디따때땨떄떠떼뗘뗴또똬뙈뙤뚀뚜뚸뛔뛰뜌뜨띄띠라래랴럐러레려례로롸뢔뢰료루뤄뤠뤼류르릐리마매먀먜머메며몌모뫄뫠뫼묘무뭐뭬뮈뮤므믜미바배뱌뱨버베벼볘보봐봬뵈뵤부붜붸뷔뷰브븨비빠빼뺘뺴뻐뻬뼈뼤뽀뽜뽸뾔뾰뿌뿨쀄쀠쀼쁘쁴삐사새샤섀서세셔셰소솨쇄쇠쇼수숴쉐쉬슈스싀시싸쌔쌰썌써쎄쎠쎼쏘쏴쐐쐬쑈쑤쒀쒜쒸쓔쓰씌씨아애야얘어에여예오와왜외요우워웨위유으의이자재쟈쟤저제져졔조좌좨죄죠주줘줴쥐쥬즈즤지짜째쨔쨰쩌쩨쪄쪠쪼쫘쫴쬐쬬쭈쭤쮀쮜쮸쯔쯰찌차채챠챼처체쳐쳬초촤쵀최쵸추춰췌취츄츠츼치카캐캬컈커케켜켸코콰쾌쾨쿄쿠쿼퀘퀴큐크킈키타태탸턔터테텨톄토톼퇘퇴툐투퉈퉤튀튜트틔티파패퍄퍠퍼페펴폐포퐈퐤푀표푸풔풰퓌퓨프픠피하해햐햬허헤혀혜호화홰회효후훠훼휘휴흐희히]?[ᅠ-ᆢ]+|[가-힣])[ᆨ-ᇹ]*|[ᄀ-ᅟ]+|[^\p{Cc}\p{Cf}\p{Zl}\p{Zp}])[\p{Mn}\p{Me}\x{09BE}\x{09D7}\x{0B3E}\x{0B57}\x{0BBE}\x{0BD7}\x{0CC2}\x{0CD5}\x{0CD6}\x{0D3E}\x{0D57}\x{0DCF}\x{0DDF}\x{200C}\x{200D}\x{1D165}\x{1D16E}-\x{1D172}]*|[\p{Cc}\p{Cf}\p{Zl}\p{Zp}])';
- public static function grapheme_extract($s, $size, $type = GRAPHEME_EXTR_COUNT, $start = 0, &$next = 0)
+ public static function grapheme_extract($s, $size, $type = \GRAPHEME_EXTR_COUNT, $start = 0, &$next = 0)
{
if (0 > $start) {
$start = \strlen($s) + $start;
}
- if (!\is_scalar($s)) {
+ if (!is_scalar($s)) {
$hasError = false;
set_error_handler(function () use (&$hasError) { $hasError = true; });
$next = substr($s, $start);
@@ -61,7 +61,15 @@ public static function grapheme_extract($s, $size, $type = GRAPHEME_EXTR_COUNT,
$type = (int) $type;
$start = (int) $start;
- if (!isset($s[0]) || 0 > $size || 0 > $start || 0 > $type || 2 < $type) {
+ if (\GRAPHEME_EXTR_COUNT !== $type && \GRAPHEME_EXTR_MAXBYTES !== $type && \GRAPHEME_EXTR_MAXCHARS !== $type) {
+ if (80000 > \PHP_VERSION_ID) {
+ return false;
+ }
+
+ throw new \ValueError('grapheme_extract(): Argument #3 ($type) must be one of GRAPHEME_EXTR_COUNT, GRAPHEME_EXTR_MAXBYTES, or GRAPHEME_EXTR_MAXCHARS');
+ }
+
+ if (!isset($s[0]) || 0 > $size || 0 > $start) {
return false;
}
if (0 === $size) {
@@ -70,7 +78,7 @@ public static function grapheme_extract($s, $size, $type = GRAPHEME_EXTR_COUNT,
$next = $start;
- $s = preg_split('/('.SYMFONY_GRAPHEME_CLUSTER_RX.')/u', "\r\n".$s, $size + 1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
+ $s = preg_split('/('.SYMFONY_GRAPHEME_CLUSTER_RX.')/u', "\r\n".$s, $size + 1, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE);
if (!isset($s[1])) {
return false;
@@ -80,9 +88,9 @@ public static function grapheme_extract($s, $size, $type = GRAPHEME_EXTR_COUNT,
$ret = '';
do {
- if (GRAPHEME_EXTR_COUNT === $type) {
+ if (\GRAPHEME_EXTR_COUNT === $type) {
--$size;
- } elseif (GRAPHEME_EXTR_MAXBYTES === $type) {
+ } elseif (\GRAPHEME_EXTR_MAXBYTES === $type) {
$size -= \strlen($s[$i]);
} else {
$size -= iconv_strlen($s[$i], 'UTF-8//IGNORE');
@@ -181,7 +189,7 @@ public static function grapheme_strstr($s, $needle, $beforeNeedle = false)
private static function grapheme_position($s, $needle, $offset, $mode)
{
$needle = (string) $needle;
- if (!preg_match('/./us', $needle)) {
+ if (80000 > \PHP_VERSION_ID && !preg_match('/./us', $needle)) {
return false;
}
$s = (string) $s;
@@ -205,13 +213,25 @@ private static function grapheme_position($s, $needle, $offset, $mode)
}
}
- switch ($mode) {
- case 0: $needle = iconv_strpos($s, $needle, 0, 'UTF-8'); break;
- case 1: $needle = mb_stripos($s, $needle, 0, 'UTF-8'); break;
- case 2: $needle = iconv_strrpos($s, $needle, 'UTF-8'); break;
- default: $needle = mb_strripos($s, $needle, 0, 'UTF-8'); break;
+ // As UTF-8 is self-synchronizing, and we have ensured the strings are valid UTF-8,
+ // we can use normal binary string functions here. For case-insensitive searches,
+ // case fold the strings first.
+ $caseInsensitive = $mode & 1;
+ $reverse = $mode & 2;
+ if ($caseInsensitive) {
+ // Use the same case folding mode as mbstring does for mb_stripos().
+ // Stick to SIMPLE case folding to avoid changing the length of the string, which
+ // might result in offsets being shifted.
+ $mode = \defined('MB_CASE_FOLD_SIMPLE') ? \MB_CASE_FOLD_SIMPLE : \MB_CASE_UPPER;
+ $s = mb_convert_case($s, $mode, 'UTF-8');
+ $needle = mb_convert_case($needle, $mode, 'UTF-8');
+ }
+ if ($reverse) {
+ $needlePos = strrpos($s, $needle);
+ } else {
+ $needlePos = strpos($s, $needle);
}
- return false !== $needle ? self::grapheme_strlen(iconv_substr($s, 0, $needle, 'UTF-8')) + $offset : false;
+ return false !== $needlePos ? self::grapheme_strlen(substr($s, 0, $needlePos)) + $offset : false;
}
}
diff --git a/typerocket/vendor/symfony/polyfill-intl-grapheme/bootstrap.php b/typerocket/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
index 1a44b21e..a9ea03c7 100644
--- a/typerocket/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
+++ b/typerocket/vendor/symfony/polyfill-intl-grapheme/bootstrap.php
@@ -15,6 +15,10 @@
return;
}
+if (\PHP_VERSION_ID >= 80000) {
+ return require __DIR__.'/bootstrap80.php';
+}
+
if (!defined('GRAPHEME_EXTR_COUNT')) {
define('GRAPHEME_EXTR_COUNT', 0);
}
@@ -26,13 +30,13 @@
}
if (!function_exists('grapheme_extract')) {
- function grapheme_extract($haystack, $size, $extract_type = 0, $start = 0, &$next = 0) { return p\Grapheme::grapheme_extract($haystack, $size, $extract_type, $start, $next); }
+ function grapheme_extract($haystack, $size, $type = 0, $start = 0, &$next = 0) { return p\Grapheme::grapheme_extract($haystack, $size, $type, $start, $next); }
}
if (!function_exists('grapheme_stripos')) {
function grapheme_stripos($haystack, $needle, $offset = 0) { return p\Grapheme::grapheme_stripos($haystack, $needle, $offset); }
}
if (!function_exists('grapheme_stristr')) {
- function grapheme_stristr($haystack, $needle, $before_needle = false) { return p\Grapheme::grapheme_stristr($haystack, $needle, $before_needle); }
+ function grapheme_stristr($haystack, $needle, $beforeNeedle = false) { return p\Grapheme::grapheme_stristr($haystack, $needle, $beforeNeedle); }
}
if (!function_exists('grapheme_strlen')) {
function grapheme_strlen($input) { return p\Grapheme::grapheme_strlen($input); }
@@ -47,8 +51,8 @@ function grapheme_strripos($haystack, $needle, $offset = 0) { return p\Grapheme:
function grapheme_strrpos($haystack, $needle, $offset = 0) { return p\Grapheme::grapheme_strrpos($haystack, $needle, $offset); }
}
if (!function_exists('grapheme_strstr')) {
- function grapheme_strstr($haystack, $needle, $before_needle = false) { return p\Grapheme::grapheme_strstr($haystack, $needle, $before_needle); }
+ function grapheme_strstr($haystack, $needle, $beforeNeedle = false) { return p\Grapheme::grapheme_strstr($haystack, $needle, $beforeNeedle); }
}
if (!function_exists('grapheme_substr')) {
- function grapheme_substr($string, $start, $length = null) { return p\Grapheme::grapheme_substr($string, $start, $length); }
+ function grapheme_substr($string, $offset, $length = null) { return p\Grapheme::grapheme_substr($string, $offset, $length); }
}
diff --git a/typerocket/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php b/typerocket/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php
new file mode 100644
index 00000000..e144d5b0
--- /dev/null
+++ b/typerocket/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php
@@ -0,0 +1,50 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Intl\Grapheme as p;
+
+if (!defined('GRAPHEME_EXTR_COUNT')) {
+ define('GRAPHEME_EXTR_COUNT', 0);
+}
+if (!defined('GRAPHEME_EXTR_MAXBYTES')) {
+ define('GRAPHEME_EXTR_MAXBYTES', 1);
+}
+if (!defined('GRAPHEME_EXTR_MAXCHARS')) {
+ define('GRAPHEME_EXTR_MAXCHARS', 2);
+}
+
+if (!function_exists('grapheme_extract')) {
+ function grapheme_extract(string $haystack, int $size, int $type = GRAPHEME_EXTR_COUNT, int $offset = 0, &$next = null): string|false { return p\Grapheme::grapheme_extract($haystack, $size, $type, $offset, $next); }
+}
+if (!function_exists('grapheme_stripos')) {
+ function grapheme_stripos(string $haystack, string $needle, int $offset = 0): int|false { return p\Grapheme::grapheme_stripos($haystack, $needle, $offset); }
+}
+if (!function_exists('grapheme_stristr')) {
+ function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false): string|false { return p\Grapheme::grapheme_stristr($haystack, $needle, $beforeNeedle); }
+}
+if (!function_exists('grapheme_strlen')) {
+ function grapheme_strlen(string $string): int|false|null { return p\Grapheme::grapheme_strlen($string); }
+}
+if (!function_exists('grapheme_strpos')) {
+ function grapheme_strpos(string $haystack, string $needle, int $offset = 0): int|false { return p\Grapheme::grapheme_strpos($haystack, $needle, $offset); }
+}
+if (!function_exists('grapheme_strripos')) {
+ function grapheme_strripos(string $haystack, string $needle, int $offset = 0): int|false { return p\Grapheme::grapheme_strripos($haystack, $needle, $offset); }
+}
+if (!function_exists('grapheme_strrpos')) {
+ function grapheme_strrpos(string $haystack, string $needle, int $offset = 0): int|false { return p\Grapheme::grapheme_strrpos($haystack, $needle, $offset); }
+}
+if (!function_exists('grapheme_strstr')) {
+ function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false): string|false { return p\Grapheme::grapheme_strstr($haystack, $needle, $beforeNeedle); }
+}
+if (!function_exists('grapheme_substr')) {
+ function grapheme_substr(string $string, int $offset, int $length = null): string|false { return p\Grapheme::grapheme_substr($string, $offset, $length); }
+}
diff --git a/typerocket/vendor/symfony/polyfill-intl-grapheme/composer.json b/typerocket/vendor/symfony/polyfill-intl-grapheme/composer.json
index 4d0bcb78..5ca4e3b9 100644
--- a/typerocket/vendor/symfony/polyfill-intl-grapheme/composer.json
+++ b/typerocket/vendor/symfony/polyfill-intl-grapheme/composer.json
@@ -28,7 +28,7 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
diff --git a/typerocket/vendor/symfony/polyfill-intl-normalizer/Normalizer.php b/typerocket/vendor/symfony/polyfill-intl-normalizer/Normalizer.php
index a60fae62..4443c232 100644
--- a/typerocket/vendor/symfony/polyfill-intl-normalizer/Normalizer.php
+++ b/typerocket/vendor/symfony/polyfill-intl-normalizer/Normalizer.php
@@ -23,28 +23,27 @@
*/
class Normalizer
{
- const FORM_D = \Normalizer::FORM_D;
- const FORM_KD = \Normalizer::FORM_KD;
- const FORM_C = \Normalizer::FORM_C;
- const FORM_KC = \Normalizer::FORM_KC;
- const NFD = \Normalizer::NFD;
- const NFKD = \Normalizer::NFKD;
- const NFC = \Normalizer::NFC;
- const NFKC = \Normalizer::NFKC;
+ public const FORM_D = \Normalizer::FORM_D;
+ public const FORM_KD = \Normalizer::FORM_KD;
+ public const FORM_C = \Normalizer::FORM_C;
+ public const FORM_KC = \Normalizer::FORM_KC;
+ public const NFD = \Normalizer::NFD;
+ public const NFKD = \Normalizer::NFKD;
+ public const NFC = \Normalizer::NFC;
+ public const NFKC = \Normalizer::NFKC;
private static $C;
private static $D;
private static $KD;
private static $cC;
- private static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
+ private static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4];
private static $ASCII = "\x20\x65\x69\x61\x73\x6E\x74\x72\x6F\x6C\x75\x64\x5D\x5B\x63\x6D\x70\x27\x0A\x67\x7C\x68\x76\x2E\x66\x62\x2C\x3A\x3D\x2D\x71\x31\x30\x43\x32\x2A\x79\x78\x29\x28\x4C\x39\x41\x53\x2F\x50\x22\x45\x6A\x4D\x49\x6B\x33\x3E\x35\x54\x3C\x44\x34\x7D\x42\x7B\x38\x46\x77\x52\x36\x37\x55\x47\x4E\x3B\x4A\x7A\x56\x23\x48\x4F\x57\x5F\x26\x21\x4B\x3F\x58\x51\x25\x59\x5C\x09\x5A\x2B\x7E\x5E\x24\x40\x60\x7F\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0B\x0C\x0D\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F";
- public static function isNormalized($s, $form = self::NFC)
+ public static function isNormalized(string $s, int $form = self::FORM_C)
{
- if (!\in_array($form, array(self::NFD, self::NFKD, self::NFC, self::NFKC))) {
+ if (!\in_array($form, [self::NFD, self::NFKD, self::NFC, self::NFKC])) {
return false;
}
- $s = (string) $s;
if (!isset($s[strspn($s, self::$ASCII)])) {
return true;
}
@@ -55,9 +54,8 @@ public static function isNormalized($s, $form = self::NFC)
return self::normalize($s, $form) === $s;
}
- public static function normalize($s, $form = self::NFC)
+ public static function normalize(string $s, int $form = self::FORM_C)
{
- $s = (string) $s;
if (!preg_match('//u', $s)) {
return false;
}
@@ -72,7 +70,11 @@ public static function normalize($s, $form = self::NFC)
return $s;
}
- return false;
+ if (80000 > \PHP_VERSION_ID) {
+ return false;
+ }
+
+ throw new \ValueError('normalizer_normalize(): Argument #2 ($form) must be a a valid normalization form');
}
if ('' === $s) {
@@ -152,7 +154,7 @@ private static function recompose($s)
|| $lastUcls) {
// Table lookup and combining chars composition
- $ucls = isset($combClass[$uchr]) ? $combClass[$uchr] : 0;
+ $ucls = $combClass[$uchr] ?? 0;
if (isset($compMap[$lastUchr.$uchr]) && (!$lastUcls || $lastUcls < $ucls)) {
$lastUchr = $compMap[$lastUchr.$uchr];
@@ -204,7 +206,7 @@ private static function decompose($s, $c)
$compatMap = self::$KD;
}
- $c = array();
+ $c = [];
$i = 0;
$len = \strlen($s);
@@ -215,7 +217,7 @@ private static function decompose($s, $c)
if ($c) {
ksort($c);
$result .= implode('', $c);
- $c = array();
+ $c = [];
}
$j = 1 + strspn($s, $ASCII, $i + 1);
@@ -231,7 +233,7 @@ private static function decompose($s, $c)
if ($uchr < "\xEA\xB0\x80" || "\xED\x9E\xA3" < $uchr) {
// Table lookup
- if ($uchr !== $j = isset($compatMap[$uchr]) ? $compatMap[$uchr] : (isset($decompMap[$uchr]) ? $decompMap[$uchr] : $uchr)) {
+ if ($uchr !== $j = $compatMap[$uchr] ?? ($decompMap[$uchr] ?? $uchr)) {
$uchr = $j;
$j = \strlen($uchr);
@@ -283,7 +285,7 @@ private static function decompose($s, $c)
if ($c) {
ksort($c);
$result .= implode('', $c);
- $c = array();
+ $c = [];
}
$result .= $uchr;
diff --git a/typerocket/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php b/typerocket/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php
index ca18eff3..0fdfc890 100644
--- a/typerocket/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php
+++ b/typerocket/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php
@@ -5,13 +5,13 @@ class Normalizer extends Symfony\Polyfill\Intl\Normalizer\Normalizer
/**
* @deprecated since ICU 56 and removed in PHP 8
*/
- const NONE = 1;
- const FORM_D = 2;
- const FORM_KD = 3;
- const FORM_C = 4;
- const FORM_KC = 5;
- const NFD = 2;
- const NFKD = 3;
- const NFC = 4;
- const NFKC = 5;
+ public const NONE = 2;
+ public const FORM_D = 4;
+ public const FORM_KD = 8;
+ public const FORM_C = 16;
+ public const FORM_KC = 32;
+ public const NFD = 4;
+ public const NFKD = 8;
+ public const NFC = 16;
+ public const NFKC = 32;
}
diff --git a/typerocket/vendor/symfony/polyfill-intl-normalizer/bootstrap.php b/typerocket/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
index bac4318c..3608e5c0 100644
--- a/typerocket/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
+++ b/typerocket/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
@@ -11,9 +11,13 @@
use Symfony\Polyfill\Intl\Normalizer as p;
+if (\PHP_VERSION_ID >= 80000) {
+ return require __DIR__.'/bootstrap80.php';
+}
+
if (!function_exists('normalizer_is_normalized')) {
- function normalizer_is_normalized($input, $form = p\Normalizer::NFC) { return p\Normalizer::isNormalized($input, $form); }
+ function normalizer_is_normalized($string, $form = p\Normalizer::FORM_C) { return p\Normalizer::isNormalized($string, $form); }
}
if (!function_exists('normalizer_normalize')) {
- function normalizer_normalize($input, $form = p\Normalizer::NFC) { return p\Normalizer::normalize($input, $form); }
+ function normalizer_normalize($string, $form = p\Normalizer::FORM_C) { return p\Normalizer::normalize($string, $form); }
}
diff --git a/typerocket/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php b/typerocket/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php
new file mode 100644
index 00000000..c9a29d7a
--- /dev/null
+++ b/typerocket/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php
@@ -0,0 +1,19 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Intl\Normalizer as p;
+
+if (!function_exists('normalizer_is_normalized')) {
+ function normalizer_is_normalized(string $string, int $form = p\Normalizer::FORM_C): bool { return p\Normalizer::isNormalized($string, $form); }
+}
+if (!function_exists('normalizer_normalize')) {
+ function normalizer_normalize(string $string, int $form = p\Normalizer::FORM_C): string|false { return p\Normalizer::normalize($string, $form); }
+}
diff --git a/typerocket/vendor/symfony/polyfill-intl-normalizer/composer.json b/typerocket/vendor/symfony/polyfill-intl-normalizer/composer.json
index 873abd3e..8f4cfb4d 100644
--- a/typerocket/vendor/symfony/polyfill-intl-normalizer/composer.json
+++ b/typerocket/vendor/symfony/polyfill-intl-normalizer/composer.json
@@ -29,7 +29,7 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
diff --git a/typerocket/vendor/symfony/polyfill-mbstring/Mbstring.php b/typerocket/vendor/symfony/polyfill-mbstring/Mbstring.php
index 7bb30237..8b3b7589 100644
--- a/typerocket/vendor/symfony/polyfill-mbstring/Mbstring.php
+++ b/typerocket/vendor/symfony/polyfill-mbstring/Mbstring.php
@@ -67,15 +67,15 @@
*/
final class Mbstring
{
- const MB_CASE_FOLD = PHP_INT_MAX;
+ public const MB_CASE_FOLD = \PHP_INT_MAX;
- private static $encodingList = array('ASCII', 'UTF-8');
+ private static $encodingList = ['ASCII', 'UTF-8'];
private static $language = 'neutral';
private static $internalEncoding = 'UTF-8';
- private static $caseFold = array(
- array('µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"),
- array('μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'),
- );
+ private static $caseFold = [
+ ['µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"],
+ ['μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'],
+ ];
public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null)
{
@@ -104,11 +104,11 @@ public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null
$s = iconv($fromEncoding, 'UTF-8//IGNORE', $s);
}
- return preg_replace_callback('/[\x80-\xFF]+/', array(__CLASS__, 'html_encoding_callback'), $s);
+ return preg_replace_callback('/[\x80-\xFF]+/', [__CLASS__, 'html_encoding_callback'], $s);
}
if ('HTML-ENTITIES' === $fromEncoding) {
- $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
+ $s = html_entity_decode($s, \ENT_COMPAT, 'UTF-8');
$fromEncoding = 'UTF-8';
}
@@ -119,7 +119,7 @@ public static function mb_convert_variables($toEncoding, $fromEncoding, &...$var
{
$ok = true;
array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) {
- if (false === $v = Mbstring::mb_convert_encoding($v, $toEncoding, $fromEncoding)) {
+ if (false === $v = self::mb_convert_encoding($v, $toEncoding, $fromEncoding)) {
$ok = false;
}
});
@@ -134,23 +134,23 @@ public static function mb_decode_mimeheader($s)
public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null)
{
- trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', E_USER_WARNING);
+ trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', \E_USER_WARNING);
}
public static function mb_decode_numericentity($s, $convmap, $encoding = null)
{
- if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
- trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
+ if (null !== $s && !is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) {
+ trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING);
return null;
}
- if (!\is_array($convmap) || !$convmap) {
+ if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) {
return false;
}
- if (null !== $encoding && !\is_scalar($encoding)) {
- trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
+ if (null !== $encoding && !is_scalar($encoding)) {
+ trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING);
return ''; // Instead of null (cf. mb_encode_numericentity).
}
@@ -183,7 +183,7 @@ public static function mb_decode_numericentity($s, $convmap, $encoding = null)
$c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1];
for ($i = 0; $i < $cnt; $i += 4) {
if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) {
- return Mbstring::mb_chr($c - $convmap[$i + 2]);
+ return self::mb_chr($c - $convmap[$i + 2]);
}
}
@@ -199,24 +199,24 @@ public static function mb_decode_numericentity($s, $convmap, $encoding = null)
public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false)
{
- if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
- trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
+ if (null !== $s && !is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) {
+ trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING);
return null;
}
- if (!\is_array($convmap) || !$convmap) {
+ if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) {
return false;
}
- if (null !== $encoding && !\is_scalar($encoding)) {
- trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
+ if (null !== $encoding && !is_scalar($encoding)) {
+ trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING);
return null; // Instead of '' (cf. mb_decode_numericentity).
}
- if (null !== $is_hex && !\is_scalar($is_hex)) {
- trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', E_USER_WARNING);
+ if (null !== $is_hex && !is_scalar($is_hex)) {
+ trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', \E_USER_WARNING);
return null;
}
@@ -237,7 +237,7 @@ public static function mb_encode_numericentity($s, $convmap, $encoding = null, $
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
}
- static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
+ static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4];
$cnt = floor(\count($convmap) / 4) * 4;
$i = 0;
@@ -285,14 +285,14 @@ public static function mb_convert_case($s, $mode, $encoding = null)
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
}
- if (MB_CASE_TITLE == $mode) {
+ if (\MB_CASE_TITLE == $mode) {
static $titleRegexp = null;
if (null === $titleRegexp) {
$titleRegexp = self::getData('titleCaseRegexp');
}
- $s = preg_replace_callback($titleRegexp, array(__CLASS__, 'title_case'), $s);
+ $s = preg_replace_callback($titleRegexp, [__CLASS__, 'title_case'], $s);
} else {
- if (MB_CASE_UPPER == $mode) {
+ if (\MB_CASE_UPPER == $mode) {
static $upper = null;
if (null === $upper) {
$upper = self::getData('upperCase');
@@ -310,7 +310,7 @@ public static function mb_convert_case($s, $mode, $encoding = null)
$map = $lower;
}
- static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
+ static $ulenMask = ["\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4];
$i = 0;
$len = \strlen($s);
@@ -351,15 +351,19 @@ public static function mb_internal_encoding($encoding = null)
return self::$internalEncoding;
}
- $encoding = self::getEncoding($encoding);
+ $normalizedEncoding = self::getEncoding($encoding);
- if ('UTF-8' === $encoding || false !== @iconv($encoding, $encoding, ' ')) {
- self::$internalEncoding = $encoding;
+ if ('UTF-8' === $normalizedEncoding || false !== @iconv($normalizedEncoding, $normalizedEncoding, ' ')) {
+ self::$internalEncoding = $normalizedEncoding;
return true;
}
- return false;
+ if (80000 > \PHP_VERSION_ID) {
+ return false;
+ }
+
+ throw new \ValueError(sprintf('Argument #1 ($encoding) must be a valid encoding, "%s" given', $encoding));
}
public static function mb_language($lang = null)
@@ -368,20 +372,24 @@ public static function mb_language($lang = null)
return self::$language;
}
- switch ($lang = strtolower($lang)) {
+ switch ($normalizedLang = strtolower($lang)) {
case 'uni':
case 'neutral':
- self::$language = $lang;
+ self::$language = $normalizedLang;
return true;
}
- return false;
+ if (80000 > \PHP_VERSION_ID) {
+ return false;
+ }
+
+ throw new \ValueError(sprintf('Argument #1 ($language) must be a valid language, "%s" given', $lang));
}
public static function mb_list_encodings()
{
- return array('UTF-8');
+ return ['UTF-8'];
}
public static function mb_encoding_aliases($encoding)
@@ -389,7 +397,7 @@ public static function mb_encoding_aliases($encoding)
switch (strtoupper($encoding)) {
case 'UTF8':
case 'UTF-8':
- return array('utf8');
+ return ['utf8'];
}
return false;
@@ -404,7 +412,7 @@ public static function mb_check_encoding($var = null, $encoding = null)
$encoding = self::$internalEncoding;
}
- return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var);
+ return self::mb_detect_encoding($var, [$encoding]) || false !== @iconv($encoding, $encoding, $var);
}
public static function mb_detect_encoding($str, $encodingList = null, $strict = false)
@@ -491,9 +499,13 @@ public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = nu
$needle = (string) $needle;
if ('' === $needle) {
- trigger_error(__METHOD__.': Empty delimiter', E_USER_WARNING);
+ if (80000 > \PHP_VERSION_ID) {
+ trigger_error(__METHOD__.': Empty delimiter', \E_USER_WARNING);
- return false;
+ return false;
+ }
+
+ return 0;
}
return iconv_strpos($haystack, $needle, $offset, $encoding);
@@ -519,23 +531,28 @@ public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = n
}
}
- $pos = iconv_strrpos($haystack, $needle, $encoding);
+ $pos = '' !== $needle || 80000 > \PHP_VERSION_ID
+ ? iconv_strrpos($haystack, $needle, $encoding)
+ : self::mb_strlen($haystack, $encoding);
return false !== $pos ? $offset + $pos : false;
}
public static function mb_str_split($string, $split_length = 1, $encoding = null)
{
- if (null !== $string && !\is_scalar($string) && !(\is_object($string) && \method_exists($string, '__toString'))) {
- trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', E_USER_WARNING);
+ if (null !== $string && !is_scalar($string) && !(\is_object($string) && method_exists($string, '__toString'))) {
+ trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', \E_USER_WARNING);
return null;
}
if (1 > $split_length = (int) $split_length) {
- trigger_error('The length of each segment must be greater than zero', E_USER_WARNING);
+ if (80000 > \PHP_VERSION_ID) {
+ trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING);
+ return false;
+ }
- return false;
+ throw new \ValueError('Argument #2 ($length) must be greater than 0');
}
if (null === $encoding) {
@@ -550,10 +567,10 @@ public static function mb_str_split($string, $split_length = 1, $encoding = null
}
$rx .= '.{'.$split_length.'})/us';
- return preg_split($rx, $string, null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
+ return preg_split($rx, $string, null, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY);
}
- $result = array();
+ $result = [];
$length = mb_strlen($string, $encoding);
for ($i = 0; $i < $length; $i += $split_length) {
@@ -565,21 +582,27 @@ public static function mb_str_split($string, $split_length = 1, $encoding = null
public static function mb_strtolower($s, $encoding = null)
{
- return self::mb_convert_case($s, MB_CASE_LOWER, $encoding);
+ return self::mb_convert_case($s, \MB_CASE_LOWER, $encoding);
}
public static function mb_strtoupper($s, $encoding = null)
{
- return self::mb_convert_case($s, MB_CASE_UPPER, $encoding);
+ return self::mb_convert_case($s, \MB_CASE_UPPER, $encoding);
}
public static function mb_substitute_character($c = null)
{
+ if (null === $c) {
+ return 'none';
+ }
if (0 === strcasecmp($c, 'none')) {
return true;
}
+ if (80000 > \PHP_VERSION_ID) {
+ return false;
+ }
- return null !== $c ? false : 'none';
+ throw new \ValueError('Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint');
}
public static function mb_substr($s, $start, $length = null, $encoding = null)
@@ -667,7 +690,7 @@ public static function mb_strstr($haystack, $needle, $part = false, $encoding =
public static function mb_get_info($type = 'all')
{
- $info = array(
+ $info = [
'internal_encoding' => self::$internalEncoding,
'http_output' => 'pass',
'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)',
@@ -682,7 +705,7 @@ public static function mb_get_info($type = 'all')
'detect_order' => self::$encodingList,
'substitute_character' => 'none',
'strict_detection' => 'Off',
- );
+ ];
if ('all' === $type) {
return $info;
@@ -786,7 +809,7 @@ private static function html_encoding_callback(array $m)
{
$i = 1;
$entities = '';
- $m = unpack('C*', htmlentities($m[0], ENT_COMPAT, 'UTF-8'));
+ $m = unpack('C*', htmlentities($m[0], \ENT_COMPAT, 'UTF-8'));
while (isset($m[$i])) {
if (0x80 > $m[$i]) {
@@ -809,7 +832,7 @@ private static function html_encoding_callback(array $m)
private static function title_case(array $s)
{
- return self::mb_convert_case($s[1], MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], MB_CASE_LOWER, 'UTF-8');
+ return self::mb_convert_case($s[1], \MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], \MB_CASE_LOWER, 'UTF-8');
}
private static function getData($file)
diff --git a/typerocket/vendor/symfony/polyfill-mbstring/bootstrap.php b/typerocket/vendor/symfony/polyfill-mbstring/bootstrap.php
index d0a93d4d..c45624c9 100644
--- a/typerocket/vendor/symfony/polyfill-mbstring/bootstrap.php
+++ b/typerocket/vendor/symfony/polyfill-mbstring/bootstrap.php
@@ -11,6 +11,10 @@
use Symfony\Polyfill\Mbstring as p;
+if (\PHP_VERSION_ID >= 80000) {
+ return require __DIR__.'/bootstrap80.php';
+}
+
if (!function_exists('mb_convert_encoding')) {
function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); }
}
@@ -18,7 +22,7 @@ function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { ret
function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); }
}
if (!function_exists('mb_encode_mimeheader')) {
- function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); }
+ function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = "\r\n", $indent = 0) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); }
}
if (!function_exists('mb_decode_numericentity')) {
function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); }
@@ -51,7 +55,7 @@ function mb_detect_encoding($string, $encodings = null, $strict = false) { retur
function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
}
if (!function_exists('mb_parse_str')) {
- function mb_parse_str($string, &$result = array()) { parse_str($string, $result); }
+ function mb_parse_str($string, &$result = []) { parse_str($string, $result); }
}
if (!function_exists('mb_strlen')) {
function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); }
@@ -108,15 +112,11 @@ function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstri
function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); }
}
if (!function_exists('mb_http_input')) {
- function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); }
+ function mb_http_input($type = null) { return p\Mbstring::mb_http_input($type); }
}
if (!function_exists('mb_convert_variables')) {
- if (PHP_VERSION_ID >= 80000) {
- function mb_convert_variables($to_encoding, $from_encoding, &$var, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, $var, ...$vars); }
- } else {
- function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); }
- }
+ function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); }
}
if (!function_exists('mb_ord')) {
diff --git a/typerocket/vendor/symfony/polyfill-mbstring/bootstrap80.php b/typerocket/vendor/symfony/polyfill-mbstring/bootstrap80.php
new file mode 100644
index 00000000..e86754e5
--- /dev/null
+++ b/typerocket/vendor/symfony/polyfill-mbstring/bootstrap80.php
@@ -0,0 +1,143 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Mbstring as p;
+
+if (!function_exists('mb_convert_encoding')) {
+ function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); }
+}
+if (!function_exists('mb_decode_mimeheader')) {
+ function mb_decode_mimeheader(string $string): string { return p\Mbstring::mb_decode_mimeheader($string); }
+}
+if (!function_exists('mb_encode_mimeheader')) {
+ function mb_encode_mimeheader(string $string, string $charset = null, string $transfer_encoding = null, string $newline = "\r\n", int $indent = 0): string { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); }
+}
+if (!function_exists('mb_decode_numericentity')) {
+ function mb_decode_numericentity(string $string, array $map, string $encoding = null): string { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); }
+}
+if (!function_exists('mb_encode_numericentity')) {
+ function mb_encode_numericentity(string $string, array $map, string $encoding = null, bool $hex = false): string { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); }
+}
+if (!function_exists('mb_convert_case')) {
+ function mb_convert_case(string $string, int $mode, string $encoding = null): string { return p\Mbstring::mb_convert_case($string, $mode, $encoding); }
+}
+if (!function_exists('mb_internal_encoding')) {
+ function mb_internal_encoding(string $encoding = null): string|bool { return p\Mbstring::mb_internal_encoding($encoding); }
+}
+if (!function_exists('mb_language')) {
+ function mb_language(string $language = null): string|bool { return p\Mbstring::mb_language($language); }
+}
+if (!function_exists('mb_list_encodings')) {
+ function mb_list_encodings(): array { return p\Mbstring::mb_list_encodings(); }
+}
+if (!function_exists('mb_encoding_aliases')) {
+ function mb_encoding_aliases(string $encoding): array { return p\Mbstring::mb_encoding_aliases($encoding); }
+}
+if (!function_exists('mb_check_encoding')) {
+ function mb_check_encoding(array|string|null $value = null, string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); }
+}
+if (!function_exists('mb_detect_encoding')) {
+ function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = false): string|false { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); }
+}
+if (!function_exists('mb_detect_order')) {
+ function mb_detect_order(array|string|null $encoding = null): array|bool { return p\Mbstring::mb_detect_order($encoding); }
+}
+if (!function_exists('mb_parse_str')) {
+ function mb_parse_str(string $string, &$result = array()): bool { parse_str($string, $result); }
+}
+if (!function_exists('mb_strlen')) {
+ function mb_strlen(string $string, string $encoding = null): int { return p\Mbstring::mb_strlen($string, $encoding); }
+}
+if (!function_exists('mb_strpos')) {
+ function mb_strpos(string $haystack, string $needle, int $offset = 0, string $encoding = null): int|false { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); }
+}
+if (!function_exists('mb_strtolower')) {
+ function mb_strtolower(string $string, string $encoding = null): string { return p\Mbstring::mb_strtolower($string, $encoding); }
+}
+if (!function_exists('mb_strtoupper')) {
+ function mb_strtoupper(string $string, string $encoding = null): string { return p\Mbstring::mb_strtoupper($string, $encoding); }
+}
+if (!function_exists('mb_substitute_character')) {
+ function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool { return p\Mbstring::mb_substitute_character($substitute_character); }
+}
+if (!function_exists('mb_substr')) {
+ function mb_substr(string $string, int $start, int $length = null, string $encoding = null): string { return p\Mbstring::mb_substr($string, $start, $length, $encoding); }
+}
+if (!function_exists('mb_stripos')) {
+ function mb_stripos(string $haystack, string $needle, int $offset = 0, string $encoding = null): int|false { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); }
+}
+if (!function_exists('mb_stristr')) {
+ function mb_stristr(string $haystack, string $needle, bool $before_needle = false, string $encoding = null): string|false { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); }
+}
+if (!function_exists('mb_strrchr')) {
+ function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, string $encoding = null): string|false { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); }
+}
+if (!function_exists('mb_strrichr')) {
+ function mb_strrichr(string $haystack, string $needle, bool $before_needle = false, string $encoding = null): string|false { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); }
+}
+if (!function_exists('mb_strripos')) {
+ function mb_strripos(string $haystack, string $needle, int $offset = 0, string $encoding = null): int|false { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); }
+}
+if (!function_exists('mb_strrpos')) {
+ function mb_strrpos(string $haystack, string $needle, int $offset = 0, string $encoding = null): int|false { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); }
+}
+if (!function_exists('mb_strstr')) {
+ function mb_strstr(string $haystack, string $needle, bool $before_needle = false, string $encoding = null): string|false { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); }
+}
+if (!function_exists('mb_get_info')) {
+ function mb_get_info(string $type = 'all'): array|string|int|false { return p\Mbstring::mb_get_info($type); }
+}
+if (!function_exists('mb_http_output')) {
+ function mb_http_output(string $encoding = null): string|bool { return p\Mbstring::mb_http_output($encoding); }
+}
+if (!function_exists('mb_strwidth')) {
+ function mb_strwidth(string $string, string $encoding = null): int { return p\Mbstring::mb_strwidth($string, $encoding); }
+}
+if (!function_exists('mb_substr_count')) {
+ function mb_substr_count(string $haystack, string $needle, string $encoding = null): int { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); }
+}
+if (!function_exists('mb_output_handler')) {
+ function mb_output_handler(string $string, int $status): string { return p\Mbstring::mb_output_handler($string, $status); }
+}
+if (!function_exists('mb_http_input')) {
+ function mb_http_input(string $type = null): array|string|false { return p\Mbstring::mb_http_input($type); }
+}
+
+if (!function_exists('mb_convert_variables')) {
+ function mb_convert_variables(string $to_encoding, array|string $from_encoding, mixed &$var, mixed &...$vars): string|false { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, $var, ...$vars); }
+}
+
+if (!function_exists('mb_ord')) {
+ function mb_ord(string $string, string $encoding = null): int|false { return p\Mbstring::mb_ord($string, $encoding); }
+}
+if (!function_exists('mb_chr')) {
+ function mb_chr(int $codepoint, string $encoding = null): string|false { return p\Mbstring::mb_chr($codepoint, $encoding); }
+}
+if (!function_exists('mb_scrub')) {
+ function mb_scrub(string $string, string $encoding = null): string { $encoding ??= mb_internal_encoding(); return mb_convert_encoding($string, $encoding, $encoding); }
+}
+if (!function_exists('mb_str_split')) {
+ function mb_str_split(string $string, int $length = 1, string $encoding = null): array { return p\Mbstring::mb_str_split($string, $length, $encoding); }
+}
+
+if (extension_loaded('mbstring')) {
+ return;
+}
+
+if (!defined('MB_CASE_UPPER')) {
+ define('MB_CASE_UPPER', 0);
+}
+if (!defined('MB_CASE_LOWER')) {
+ define('MB_CASE_LOWER', 1);
+}
+if (!defined('MB_CASE_TITLE')) {
+ define('MB_CASE_TITLE', 2);
+}
diff --git a/typerocket/vendor/symfony/polyfill-mbstring/composer.json b/typerocket/vendor/symfony/polyfill-mbstring/composer.json
index ca4a8392..ca826385 100644
--- a/typerocket/vendor/symfony/polyfill-mbstring/composer.json
+++ b/typerocket/vendor/symfony/polyfill-mbstring/composer.json
@@ -28,7 +28,7 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
diff --git a/typerocket/vendor/symfony/polyfill-php73/Php73.php b/typerocket/vendor/symfony/polyfill-php73/Php73.php
index 7c99d197..65c35a6a 100644
--- a/typerocket/vendor/symfony/polyfill-php73/Php73.php
+++ b/typerocket/vendor/symfony/polyfill-php73/Php73.php
@@ -38,6 +38,6 @@ public static function hrtime($asNum = false)
return \PHP_INT_SIZE === 4 ? $ns : (int) $ns;
}
- return array($s, (int) $ns);
+ return [$s, (int) $ns];
}
}
diff --git a/typerocket/vendor/symfony/polyfill-php73/bootstrap.php b/typerocket/vendor/symfony/polyfill-php73/bootstrap.php
index 26787252..d6b21538 100644
--- a/typerocket/vendor/symfony/polyfill-php73/bootstrap.php
+++ b/typerocket/vendor/symfony/polyfill-php73/bootstrap.php
@@ -11,7 +11,7 @@
use Symfony\Polyfill\Php73 as p;
-if (PHP_VERSION_ID >= 70300) {
+if (\PHP_VERSION_ID >= 70300) {
return;
}
@@ -21,7 +21,7 @@ function is_countable($value) { return is_array($value) || $value instanceof Cou
if (!function_exists('hrtime')) {
require_once __DIR__.'/Php73.php';
p\Php73::$startAt = (int) microtime(true);
- function hrtime($as_number = false) { return p\Php73::hrtime($as_number ); }
+ function hrtime($as_number = false) { return p\Php73::hrtime($as_number); }
}
if (!function_exists('array_key_first')) {
function array_key_first(array $array) { foreach ($array as $key => $value) { return $key; } }
diff --git a/typerocket/vendor/symfony/polyfill-php73/composer.json b/typerocket/vendor/symfony/polyfill-php73/composer.json
index 6c9660dd..8b99ab89 100644
--- a/typerocket/vendor/symfony/polyfill-php73/composer.json
+++ b/typerocket/vendor/symfony/polyfill-php73/composer.json
@@ -26,7 +26,7 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
diff --git a/typerocket/vendor/symfony/polyfill-php80/Php80.php b/typerocket/vendor/symfony/polyfill-php80/Php80.php
index c03491b7..5fef5118 100644
--- a/typerocket/vendor/symfony/polyfill-php80/Php80.php
+++ b/typerocket/vendor/symfony/polyfill-php80/Php80.php
@@ -69,19 +69,19 @@ public static function get_resource_id($res): int
public static function preg_last_error_msg(): string
{
switch (preg_last_error()) {
- case PREG_INTERNAL_ERROR:
+ case \PREG_INTERNAL_ERROR:
return 'Internal error';
- case PREG_BAD_UTF8_ERROR:
+ case \PREG_BAD_UTF8_ERROR:
return 'Malformed UTF-8 characters, possibly incorrectly encoded';
- case PREG_BAD_UTF8_OFFSET_ERROR:
+ case \PREG_BAD_UTF8_OFFSET_ERROR:
return 'The offset did not correspond to the beginning of a valid UTF-8 code point';
- case PREG_BACKTRACK_LIMIT_ERROR:
+ case \PREG_BACKTRACK_LIMIT_ERROR:
return 'Backtrack limit exhausted';
- case PREG_RECURSION_LIMIT_ERROR:
+ case \PREG_RECURSION_LIMIT_ERROR:
return 'Recursion limit exhausted';
- case PREG_JIT_STACKLIMIT_ERROR:
+ case \PREG_JIT_STACKLIMIT_ERROR:
return 'JIT stack limit exhausted';
- case PREG_NO_ERROR:
+ case \PREG_NO_ERROR:
return 'No error';
default:
return 'Unknown error';
@@ -95,11 +95,11 @@ public static function str_contains(string $haystack, string $needle): bool
public static function str_starts_with(string $haystack, string $needle): bool
{
- return 0 === \strncmp($haystack, $needle, \strlen($needle));
+ return 0 === strncmp($haystack, $needle, \strlen($needle));
}
public static function str_ends_with(string $haystack, string $needle): bool
{
- return '' === $needle || ('' !== $haystack && 0 === \substr_compare($haystack, $needle, -\strlen($needle)));
+ return '' === $needle || ('' !== $haystack && 0 === substr_compare($haystack, $needle, -\strlen($needle)));
}
}
diff --git a/typerocket/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php b/typerocket/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php
index 8f9e6793..7ea6d277 100644
--- a/typerocket/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php
+++ b/typerocket/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php
@@ -3,19 +3,19 @@
#[Attribute(Attribute::TARGET_CLASS)]
final class Attribute
{
- const TARGET_CLASS = 1;
- const TARGET_FUNCTION = 2;
- const TARGET_METHOD = 4;
- const TARGET_PROPERTY = 8;
- const TARGET_CLASS_CONSTANT = 16;
- const TARGET_PARAMETER = 32;
- const TARGET_ALL = 63;
- const IS_REPEATABLE = 64;
+ public const TARGET_CLASS = 1;
+ public const TARGET_FUNCTION = 2;
+ public const TARGET_METHOD = 4;
+ public const TARGET_PROPERTY = 8;
+ public const TARGET_CLASS_CONSTANT = 16;
+ public const TARGET_PARAMETER = 32;
+ public const TARGET_ALL = 63;
+ public const IS_REPEATABLE = 64;
/** @var int */
public $flags;
- public function __construct(int $flags = Attribute::TARGET_ALL)
+ public function __construct(int $flags = self::TARGET_ALL)
{
$this->flags = $flags;
}
diff --git a/typerocket/vendor/symfony/polyfill-php80/bootstrap.php b/typerocket/vendor/symfony/polyfill-php80/bootstrap.php
index 4b938e6d..4f791f9e 100644
--- a/typerocket/vendor/symfony/polyfill-php80/bootstrap.php
+++ b/typerocket/vendor/symfony/polyfill-php80/bootstrap.php
@@ -11,12 +11,12 @@
use Symfony\Polyfill\Php80 as p;
-if (PHP_VERSION_ID >= 80000) {
+if (\PHP_VERSION_ID >= 80000) {
return;
}
if (!defined('FILTER_VALIDATE_BOOL') && defined('FILTER_VALIDATE_BOOLEAN')) {
- define('FILTER_VALIDATE_BOOL', FILTER_VALIDATE_BOOLEAN);
+ define('FILTER_VALIDATE_BOOL', \FILTER_VALIDATE_BOOLEAN);
}
if (!function_exists('fdiv')) {
@@ -38,5 +38,5 @@ function str_ends_with(string $haystack, string $needle): bool { return p\Php80:
function get_debug_type($value): string { return p\Php80::get_debug_type($value); }
}
if (!function_exists('get_resource_id')) {
- function get_resource_id($res): int { return p\Php80::get_resource_id($res); }
+ function get_resource_id($resource): int { return p\Php80::get_resource_id($resource); }
}
diff --git a/typerocket/vendor/symfony/polyfill-php80/composer.json b/typerocket/vendor/symfony/polyfill-php80/composer.json
index 8ad4c317..a9e6813c 100644
--- a/typerocket/vendor/symfony/polyfill-php80/composer.json
+++ b/typerocket/vendor/symfony/polyfill-php80/composer.json
@@ -30,7 +30,7 @@
"minimum-stability": "dev",
"extra": {
"branch-alias": {
- "dev-main": "1.20-dev"
+ "dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
diff --git a/typerocket/vendor/symfony/string/.gitattributes b/typerocket/vendor/symfony/string/.gitattributes
deleted file mode 100644
index 4a7ef98a..00000000
--- a/typerocket/vendor/symfony/string/.gitattributes
+++ /dev/null
@@ -1,5 +0,0 @@
-/Resources/bin/update-data.php export-ignore
-/Resources/WcswidthDataGenerator.php export-ignore
-/Tests export-ignore
-/phpunit.xml.dist export-ignore
-/.gitignore export-ignore
diff --git a/typerocket/vendor/symfony/string/Inflector/EnglishInflector.php b/typerocket/vendor/symfony/string/Inflector/EnglishInflector.php
index 4cd05434..addfac13 100644
--- a/typerocket/vendor/symfony/string/Inflector/EnglishInflector.php
+++ b/typerocket/vendor/symfony/string/Inflector/EnglishInflector.php
@@ -18,7 +18,7 @@ final class EnglishInflector implements InflectorInterface
*
* @see http://english-zone.com/spelling/plurals.html
*/
- private static $pluralMap = [
+ private const PLURAL_MAP = [
// First entry: plural suffix, reversed
// Second entry: length of plural suffix
// Third entry: Whether the suffix may succeed a vocal
@@ -138,7 +138,7 @@ final class EnglishInflector implements InflectorInterface
*
* @see http://english-zone.com/spelling/plurals.html
*/
- private static $singularMap = [
+ private const SINGULAR_MAP = [
// First entry: singular suffix, reversed
// Second entry: length of singular suffix
// Third entry: Whether the suffix may succeed a vocal
@@ -304,7 +304,8 @@ final class EnglishInflector implements InflectorInterface
/**
* A list of words which should not be inflected, reversed.
*/
- private static $uninflected = [
+ private const UNINFLECTED = [
+ '',
'atad',
'reed',
'kcabdeef',
@@ -326,7 +327,7 @@ public function singularize(string $plural): array
$pluralLength = \strlen($lowerPluralRev);
// Check if the word is one which is not inflected, return early if so
- if (\in_array($lowerPluralRev, self::$uninflected, true)) {
+ if (\in_array($lowerPluralRev, self::UNINFLECTED, true)) {
return [$plural];
}
@@ -334,7 +335,7 @@ public function singularize(string $plural): array
// The inner loop $j iterates over the characters of the plural suffix
// in the plural table to compare them with the characters of the actual
// given plural suffix
- foreach (self::$pluralMap as $map) {
+ foreach (self::PLURAL_MAP as $map) {
$suffix = $map[0];
$suffixLength = $map[1];
$j = 0;
@@ -405,7 +406,7 @@ public function pluralize(string $singular): array
$singularLength = \strlen($lowerSingularRev);
// Check if the word is one which is not inflected, return early if so
- if (\in_array($lowerSingularRev, self::$uninflected, true)) {
+ if (\in_array($lowerSingularRev, self::UNINFLECTED, true)) {
return [$singular];
}
@@ -413,7 +414,7 @@ public function pluralize(string $singular): array
// The inner loop $j iterates over the characters of the singular suffix
// in the singular table to compare them with the characters of the actual
// given singular suffix
- foreach (self::$singularMap as $map) {
+ foreach (self::SINGULAR_MAP as $map) {
$suffix = $map[0];
$suffixLength = $map[1];
$j = 0;
diff --git a/typerocket/vendor/symfony/string/Inflector/FrenchInflector.php b/typerocket/vendor/symfony/string/Inflector/FrenchInflector.php
index 2d168007..42f6125a 100644
--- a/typerocket/vendor/symfony/string/Inflector/FrenchInflector.php
+++ b/typerocket/vendor/symfony/string/Inflector/FrenchInflector.php
@@ -23,7 +23,7 @@ final class FrenchInflector implements InflectorInterface
*
* @see https://la-conjugaison.nouvelobs.com/regles/grammaire/le-pluriel-des-noms-121.php
*/
- private static $pluralizeRegexp = [
+ private const PLURALIZE_REGEXP = [
// First entry: regexp
// Second entry: replacement
@@ -67,7 +67,7 @@ final class FrenchInflector implements InflectorInterface
/**
* A list of all rules for singularize.
*/
- private static $singularizeRegexp = [
+ private const SINGULARIZE_REGEXP = [
// First entry: regexp
// Second entry: replacement
@@ -108,7 +108,7 @@ final class FrenchInflector implements InflectorInterface
* A list of words which should not be inflected.
* This list is only used by singularize.
*/
- private static $uninflected = '/^(abcès|accès|abus|albatros|anchois|anglais|autobus|bois|brebis|carquois|cas|chas|colis|concours|corps|cours|cyprès|décès|devis|discours|dos|embarras|engrais|entrelacs|excès|fils|fois|gâchis|gars|glas|héros|intrus|jars|jus|kermès|lacis|legs|lilas|marais|mars|matelas|mépris|mets|mois|mors|obus|os|palais|paradis|parcours|pardessus|pays|plusieurs|poids|pois|pouls|printemps|processus|progrès|puits|pus|rabais|radis|recors|recours|refus|relais|remords|remous|rictus|rhinocéros|repas|rubis|sas|secours|sens|souris|succès|talus|tapis|tas|taudis|temps|tiers|univers|velours|verglas|vernis|virus)$/i';
+ private const UNINFLECTED = '/^(abcès|accès|abus|albatros|anchois|anglais|autobus|bois|brebis|carquois|cas|chas|colis|concours|corps|cours|cyprès|décès|devis|discours|dos|embarras|engrais|entrelacs|excès|fils|fois|gâchis|gars|glas|héros|intrus|jars|jus|kermès|lacis|legs|lilas|marais|mars|matelas|mépris|mets|mois|mors|obus|os|palais|paradis|parcours|pardessus|pays|plusieurs|poids|pois|pouls|printemps|processus|progrès|puits|pus|rabais|radis|recors|recours|refus|relais|remords|remous|rictus|rhinocéros|repas|rubis|sas|secours|sens|souris|succès|talus|tapis|tas|taudis|temps|tiers|univers|velours|verglas|vernis|virus)$/i';
/**
* {@inheritdoc}
@@ -119,7 +119,7 @@ public function singularize(string $plural): array
return [$plural];
}
- foreach (self::$singularizeRegexp as $rule) {
+ foreach (self::SINGULARIZE_REGEXP as $rule) {
[$regexp, $replace] = $rule;
if (1 === preg_match($regexp, $plural)) {
@@ -139,7 +139,7 @@ public function pluralize(string $singular): array
return [$singular];
}
- foreach (self::$pluralizeRegexp as $rule) {
+ foreach (self::PLURALIZE_REGEXP as $rule) {
[$regexp, $replace] = $rule;
if (1 === preg_match($regexp, $singular)) {
@@ -152,6 +152,6 @@ public function pluralize(string $singular): array
private function isInflectedWord(string $word): bool
{
- return 1 === preg_match(self::$uninflected, $word);
+ return 1 === preg_match(self::UNINFLECTED, $word);
}
}
diff --git a/typerocket/vendor/symfony/string/LICENSE b/typerocket/vendor/symfony/string/LICENSE
index 4bf0fef4..383e7a54 100644
--- a/typerocket/vendor/symfony/string/LICENSE
+++ b/typerocket/vendor/symfony/string/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2019-2020 Fabien Potencier
+Copyright (c) 2019-2021 Fabien Potencier
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/typerocket/vendor/symfony/string/UnicodeString.php b/typerocket/vendor/symfony/string/UnicodeString.php
index 2db507d7..9b906c6f 100644
--- a/typerocket/vendor/symfony/string/UnicodeString.php
+++ b/typerocket/vendor/symfony/string/UnicodeString.php
@@ -359,6 +359,10 @@ public function startsWith($prefix): bool
public function __wakeup()
{
+ if (!\is_string($this->string)) {
+ throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
+ }
+
normalizer_is_normalized($this->string) ?: $this->string = normalizer_normalize($this->string);
}
diff --git a/typerocket/vendor/symfony/string/composer.json b/typerocket/vendor/symfony/string/composer.json
index 9680748b..bfb03cd3 100644
--- a/typerocket/vendor/symfony/string/composer.json
+++ b/typerocket/vendor/symfony/string/composer.json
@@ -1,7 +1,7 @@
{
"name": "symfony/string",
"type": "library",
- "description": "Symfony String component",
+ "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way",
"keywords": ["string", "utf8", "utf-8", "grapheme", "i18n", "unicode"],
"homepage": "https://symfony.com",
"license": "MIT",
diff --git a/typerocket/vendor/typerocket/core/src/Database/Query.php b/typerocket/vendor/typerocket/core/src/Database/Query.php
index 9655cb58..099de1ac 100644
--- a/typerocket/vendor/typerocket/core/src/Database/Query.php
+++ b/typerocket/vendor/typerocket/core/src/Database/Query.php
@@ -140,7 +140,8 @@ public function findAll( $ids = [], $table = null, $num = null )
*
* @return array|null|object|Results
*/
- public function get() {
+ public function get()
+ {
$this->setQueryType();
return $this->runQuery();
}
@@ -347,7 +348,8 @@ public function take( $limit, $offset = 0, $returnOne = true ) {
*
* @return array|bool|false|int|null|object
*/
- public function first() {
+ public function first()
+ {
$this->returnOne = true;
$this->take(1);
return $this->get();
@@ -420,7 +422,8 @@ public function findById($id)
* @return object
* @throws \Exception
*/
- public function findOrDie($id) {
+ public function findOrDie($id)
+ {
if( ! $data = $this->findById($id)->get() ) {
throw new \Exception("Model not found: {$id} " . get_class($this));
}
@@ -441,7 +444,8 @@ public function findOrDie($id) {
* @throws \Exception
* @internal param $id
*/
- public function findFirstWhereOrDie($column, $arg1, $arg2 = null, $condition = 'AND', $num = null) {
+ public function findFirstWhereOrDie($column, $arg1, $arg2 = null, $condition = 'AND', $num = null)
+ {
if( ! $data = $this->where( $column, $arg1, $arg2, $condition, $num ?? func_num_args())->first() ) {
throw new \Exception("Model not found: on {$column} " . get_class($this));
}
@@ -456,7 +460,8 @@ public function findFirstWhereOrDie($column, $arg1, $arg2 = null, $condition = '
*
* @return array|false|int|null|object
*/
- public function delete( $ids = null ) {
+ public function delete( $ids = null )
+ {
$this->setQueryType('delete');
if(is_int($ids)) {
@@ -526,7 +531,8 @@ public function count( $column = '*' )
*
* @return array|bool|false|int|null
*/
- public function countDerived() {
+ public function countDerived()
+ {
$this->setQueryType('function', [ 'countDerived' => '*']);
return $this->runQuery();
@@ -749,8 +755,8 @@ public function paginate($number = 25, $page = null, $callback = null)
*
* @return $this
*/
- protected function setQueryType( $type = null , $args = true ) {
-
+ protected function setQueryType( $type = null , $args = true )
+ {
$actions = [
'function', 'update', 'delete', 'create'
];
@@ -777,7 +783,8 @@ protected function setQueryType( $type = null , $args = true ) {
*
* @return array|bool|false|int|null|Results|object
*/
- protected function runQuery( $query = [] ) {
+ protected function runQuery( $query = [] )
+ {
/** @var \wpdb $wpdb */
global $wpdb;
@@ -827,7 +834,8 @@ protected function runQuery( $query = [] ) {
*
* @return string|null
*/
- public function compileFullQuery() {
+ public function compileFullQuery()
+ {
/** @var \wpdb $wpdb */
global $wpdb;
@@ -940,7 +948,8 @@ protected function compileUnion()
*
* @return string
*/
- protected function compileFunction() {
+ protected function compileFunction()
+ {
$query = $this->query;
$sql = '';
@@ -959,7 +968,8 @@ protected function compileFunction() {
*
* @return string
*/
- protected function compileGrouping() {
+ protected function compileGrouping()
+ {
$query = $this->query;
$sql = '';
@@ -976,7 +986,8 @@ protected function compileGrouping() {
*
* @return string
*/
- protected function compileTake() {
+ protected function compileTake()
+ {
/** @var \wpdb $wpdb */
global $wpdb;
$query = $this->query;
@@ -994,7 +1005,8 @@ protected function compileTake() {
*
* @return string
*/
- protected function compileOrder() {
+ protected function compileOrder()
+ {
$query = $this->query;
$sql = '';
@@ -1018,7 +1030,8 @@ protected function compileOrder() {
*
* @return string|array
*/
- protected function compileInsert() {
+ protected function compileInsert()
+ {
/** @var \wpdb $wpdb */
global $wpdb;
$query = $this->query;
@@ -1097,7 +1110,8 @@ function ($v, $k) { return sprintf("%s=%s", $k, $v); },
*
* @return $this
*/
- protected function setupInserts( $data, &$inserts ) {
+ protected function setupInserts( $data, &$inserts )
+ {
$inserts[] = $this->prepareValue($data);
return $this;
}
@@ -1109,7 +1123,8 @@ protected function setupInserts( $data, &$inserts ) {
*
* @return int|null|string
*/
- protected function prepareValue( $value ) {
+ protected function prepareValue( $value )
+ {
/** @var \wpdb $wpdb */
global $wpdb;
$prepared = null;
@@ -1198,7 +1213,8 @@ public function composeWhereSql($query = null)
*
* @return string
*/
- protected function compileWhere() {
+ protected function compileWhere()
+ {
$sql = $this->composeWhereSql($this->query['where'] ?? null);
if(!empty($this->query['raw']['where']) && is_array($this->query['raw']['where'])) {
@@ -1221,7 +1237,8 @@ protected function compileWhere() {
*
* @return string
*/
- protected function compileJoins() {
+ protected function compileJoins()
+ {
$query = $this->query;
$sql = '';
@@ -1252,7 +1269,8 @@ protected function compileJoins() {
*
* @return string
*/
- protected function compileTable() {
+ protected function compileTable()
+ {
$table = $this->query['table'];
$as = $this->tableAs ? " AS {$this->tableAs} " : '';
return $table . $as;