CoreLibs composer v8.0.5 update test
This commit is contained in:
144
composer.lock
generated
144
composer.lock
generated
@@ -342,16 +342,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "microsoft/tolerant-php-parser",
|
"name": "microsoft/tolerant-php-parser",
|
||||||
"version": "v0.1.1",
|
"version": "v0.1.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/microsoft/tolerant-php-parser.git",
|
"url": "https://github.com/microsoft/tolerant-php-parser.git",
|
||||||
"reference": "6a965617cf484355048ac6d2d3de7b6ec93abb16"
|
"reference": "3eccfd273323aaf69513e2f1c888393f5947804b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/microsoft/tolerant-php-parser/zipball/6a965617cf484355048ac6d2d3de7b6ec93abb16",
|
"url": "https://api.github.com/repos/microsoft/tolerant-php-parser/zipball/3eccfd273323aaf69513e2f1c888393f5947804b",
|
||||||
"reference": "6a965617cf484355048ac6d2d3de7b6ec93abb16",
|
"reference": "3eccfd273323aaf69513e2f1c888393f5947804b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -381,22 +381,22 @@
|
|||||||
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
|
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/microsoft/tolerant-php-parser/issues",
|
"issues": "https://github.com/microsoft/tolerant-php-parser/issues",
|
||||||
"source": "https://github.com/microsoft/tolerant-php-parser/tree/v0.1.1"
|
"source": "https://github.com/microsoft/tolerant-php-parser/tree/v0.1.2"
|
||||||
},
|
},
|
||||||
"time": "2021-07-16T21:28:12+00:00"
|
"time": "2022-10-05T17:30:19+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "myclabs/deep-copy",
|
"name": "myclabs/deep-copy",
|
||||||
"version": "1.11.0",
|
"version": "1.11.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/myclabs/DeepCopy.git",
|
"url": "https://github.com/myclabs/DeepCopy.git",
|
||||||
"reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614"
|
"reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614",
|
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
|
||||||
"reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614",
|
"reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -434,7 +434,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/myclabs/DeepCopy/issues",
|
"issues": "https://github.com/myclabs/DeepCopy/issues",
|
||||||
"source": "https://github.com/myclabs/DeepCopy/tree/1.11.0"
|
"source": "https://github.com/myclabs/DeepCopy/tree/1.11.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -442,7 +442,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-03-03T13:19:32+00:00"
|
"time": "2023-03-08T13:26:56+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "netresearch/jsonmapper",
|
"name": "netresearch/jsonmapper",
|
||||||
@@ -497,16 +497,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nikic/php-parser",
|
"name": "nikic/php-parser",
|
||||||
"version": "v4.15.3",
|
"version": "v4.15.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||||
"reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039"
|
"reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039",
|
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290",
|
||||||
"reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039",
|
"reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -547,22 +547,22 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3"
|
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4"
|
||||||
},
|
},
|
||||||
"time": "2023-01-16T22:05:37+00:00"
|
"time": "2023-03-05T19:49:14+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phan/phan",
|
"name": "phan/phan",
|
||||||
"version": "5.4.1",
|
"version": "5.4.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phan/phan.git",
|
"url": "https://github.com/phan/phan.git",
|
||||||
"reference": "fef40178a952bcfcc3f69b76989dd613c3d5c759"
|
"reference": "4f2870ed6fea320f62f3c3c63f3274d357a7980e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phan/phan/zipball/fef40178a952bcfcc3f69b76989dd613c3d5c759",
|
"url": "https://api.github.com/repos/phan/phan/zipball/4f2870ed6fea320f62f3c3c63f3274d357a7980e",
|
||||||
"reference": "fef40178a952bcfcc3f69b76989dd613c3d5c759",
|
"reference": "4f2870ed6fea320f62f3c3c63f3274d357a7980e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -572,7 +572,7 @@
|
|||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-tokenizer": "*",
|
"ext-tokenizer": "*",
|
||||||
"felixfbecker/advanced-json-rpc": "^3.0.4",
|
"felixfbecker/advanced-json-rpc": "^3.0.4",
|
||||||
"microsoft/tolerant-php-parser": "0.1.1",
|
"microsoft/tolerant-php-parser": "0.1.2",
|
||||||
"netresearch/jsonmapper": "^1.6.0|^2.0|^3.0|^4.0",
|
"netresearch/jsonmapper": "^1.6.0|^2.0|^3.0|^4.0",
|
||||||
"php": "^7.2.0|^8.0.0",
|
"php": "^7.2.0|^8.0.0",
|
||||||
"sabre/event": "^5.1.3",
|
"sabre/event": "^5.1.3",
|
||||||
@@ -626,9 +626,9 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/phan/phan/issues",
|
"issues": "https://github.com/phan/phan/issues",
|
||||||
"source": "https://github.com/phan/phan/tree/5.4.1"
|
"source": "https://github.com/phan/phan/tree/5.4.2"
|
||||||
},
|
},
|
||||||
"time": "2022-08-26T00:49:07+00:00"
|
"time": "2023-03-03T17:20:24+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phar-io/manifest",
|
"name": "phar-io/manifest",
|
||||||
@@ -908,16 +908,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpstan",
|
"name": "phpstan/phpstan",
|
||||||
"version": "1.9.17",
|
"version": "1.10.6",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpstan/phpstan.git",
|
"url": "https://github.com/phpstan/phpstan.git",
|
||||||
"reference": "204e459e7822f2c586463029f5ecec31bb45a1f2"
|
"reference": "50d089a3e0904b0fe7e2cf2d4fd37d427d64235a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/204e459e7822f2c586463029f5ecec31bb45a1f2",
|
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/50d089a3e0904b0fe7e2cf2d4fd37d427d64235a",
|
||||||
"reference": "204e459e7822f2c586463029f5ecec31bb45a1f2",
|
"reference": "50d089a3e0904b0fe7e2cf2d4fd37d427d64235a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -947,7 +947,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/phpstan/phpstan/issues",
|
"issues": "https://github.com/phpstan/phpstan/issues",
|
||||||
"source": "https://github.com/phpstan/phpstan/tree/1.9.17"
|
"source": "https://github.com/phpstan/phpstan/tree/1.10.6"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -963,27 +963,27 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-02-08T12:25:00+00:00"
|
"time": "2023-03-09T16:55:12+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-code-coverage",
|
"name": "phpunit/php-code-coverage",
|
||||||
"version": "9.2.24",
|
"version": "9.2.26",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
||||||
"reference": "2cf940ebc6355a9d430462811b5aaa308b174bed"
|
"reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed",
|
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/443bc6912c9bd5b409254a40f4b0f4ced7c80ea1",
|
||||||
"reference": "2cf940ebc6355a9d430462811b5aaa308b174bed",
|
"reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
"ext-libxml": "*",
|
"ext-libxml": "*",
|
||||||
"ext-xmlwriter": "*",
|
"ext-xmlwriter": "*",
|
||||||
"nikic/php-parser": "^4.14",
|
"nikic/php-parser": "^4.15",
|
||||||
"php": ">=7.3",
|
"php": ">=7.3",
|
||||||
"phpunit/php-file-iterator": "^3.0.3",
|
"phpunit/php-file-iterator": "^3.0.3",
|
||||||
"phpunit/php-text-template": "^2.0.2",
|
"phpunit/php-text-template": "^2.0.2",
|
||||||
@@ -998,8 +998,8 @@
|
|||||||
"phpunit/phpunit": "^9.3"
|
"phpunit/phpunit": "^9.3"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-pcov": "*",
|
"ext-pcov": "PHP extension that provides line coverage",
|
||||||
"ext-xdebug": "*"
|
"ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
@@ -1032,7 +1032,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
|
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
|
||||||
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24"
|
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.26"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1040,7 +1040,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-01-26T08:26:55+00:00"
|
"time": "2023-03-06T12:58:08+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-file-iterator",
|
"name": "phpunit/php-file-iterator",
|
||||||
@@ -1285,16 +1285,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "9.6.3",
|
"version": "9.6.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555"
|
"reference": "86e761949019ae83f49240b2f2123fb5ab3b2fc5"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e7b1615e3e887d6c719121c6d4a44b0ab9645555",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/86e761949019ae83f49240b2f2123fb5ab3b2fc5",
|
||||||
"reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555",
|
"reference": "86e761949019ae83f49240b2f2123fb5ab3b2fc5",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1327,8 +1327,8 @@
|
|||||||
"sebastian/version": "^3.0.2"
|
"sebastian/version": "^3.0.2"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-soap": "*",
|
"ext-soap": "To be able to generate mocks based on WSDL files",
|
||||||
"ext-xdebug": "*"
|
"ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": [
|
||||||
"phpunit"
|
"phpunit"
|
||||||
@@ -1367,7 +1367,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.3"
|
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.5"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1383,7 +1383,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-02-04T13:37:15+00:00"
|
"time": "2023-03-09T06:34:10+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/container",
|
"name": "psr/container",
|
||||||
@@ -2520,16 +2520,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/console",
|
"name": "symfony/console",
|
||||||
"version": "v6.2.5",
|
"version": "v6.2.7",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/console.git",
|
"url": "https://github.com/symfony/console.git",
|
||||||
"reference": "3e294254f2191762c1d137aed4b94e966965e985"
|
"reference": "cbad09eb8925b6ad4fb721c7a179344dc4a19d45"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/console/zipball/3e294254f2191762c1d137aed4b94e966965e985",
|
"url": "https://api.github.com/repos/symfony/console/zipball/cbad09eb8925b6ad4fb721c7a179344dc4a19d45",
|
||||||
"reference": "3e294254f2191762c1d137aed4b94e966965e985",
|
"reference": "cbad09eb8925b6ad4fb721c7a179344dc4a19d45",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2596,7 +2596,7 @@
|
|||||||
"terminal"
|
"terminal"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/console/tree/v6.2.5"
|
"source": "https://github.com/symfony/console/tree/v6.2.7"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2612,20 +2612,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-01-01T08:38:09+00:00"
|
"time": "2023-02-25T17:00:03+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/deprecation-contracts",
|
"name": "symfony/deprecation-contracts",
|
||||||
"version": "v3.2.0",
|
"version": "v3.2.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/deprecation-contracts.git",
|
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||||
"reference": "1ee04c65529dea5d8744774d474e7cbd2f1206d3"
|
"reference": "e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/1ee04c65529dea5d8744774d474e7cbd2f1206d3",
|
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e",
|
||||||
"reference": "1ee04c65529dea5d8744774d474e7cbd2f1206d3",
|
"reference": "e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2663,7 +2663,7 @@
|
|||||||
"description": "A generic function and convention to trigger deprecation notices",
|
"description": "A generic function and convention to trigger deprecation notices",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.2.0"
|
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.2.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2679,7 +2679,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-11-25T10:21:52+00:00"
|
"time": "2023-03-01T10:25:55+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-ctype",
|
"name": "symfony/polyfill-ctype",
|
||||||
@@ -3096,16 +3096,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
"version": "v3.2.0",
|
"version": "v3.2.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/service-contracts.git",
|
"url": "https://github.com/symfony/service-contracts.git",
|
||||||
"reference": "aac98028c69df04ee77eb69b96b86ee51fbf4b75"
|
"reference": "a8c9cedf55f314f3a186041d19537303766df09a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/aac98028c69df04ee77eb69b96b86ee51fbf4b75",
|
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/a8c9cedf55f314f3a186041d19537303766df09a",
|
||||||
"reference": "aac98028c69df04ee77eb69b96b86ee51fbf4b75",
|
"reference": "a8c9cedf55f314f3a186041d19537303766df09a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3161,7 +3161,7 @@
|
|||||||
"standards"
|
"standards"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/service-contracts/tree/v3.2.0"
|
"source": "https://github.com/symfony/service-contracts/tree/v3.2.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -3177,20 +3177,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-11-25T10:21:52+00:00"
|
"time": "2023-03-01T10:32:47+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/string",
|
"name": "symfony/string",
|
||||||
"version": "v6.2.5",
|
"version": "v6.2.7",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/string.git",
|
"url": "https://github.com/symfony/string.git",
|
||||||
"reference": "b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0"
|
"reference": "67b8c1eec78296b85dc1c7d9743830160218993d"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/string/zipball/b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0",
|
"url": "https://api.github.com/repos/symfony/string/zipball/67b8c1eec78296b85dc1c7d9743830160218993d",
|
||||||
"reference": "b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0",
|
"reference": "67b8c1eec78296b85dc1c7d9743830160218993d",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3247,7 +3247,7 @@
|
|||||||
"utf8"
|
"utf8"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/string/tree/v6.2.5"
|
"source": "https://github.com/symfony/string/tree/v6.2.7"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -3263,7 +3263,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-01-01T08:38:09+00:00"
|
"time": "2023-02-24T10:42:00+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "theseer/tokenizer",
|
"name": "theseer/tokenizer",
|
||||||
|
|||||||
166
vendor/composer/installed.json
vendored
166
vendor/composer/installed.json
vendored
@@ -350,17 +350,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "microsoft/tolerant-php-parser",
|
"name": "microsoft/tolerant-php-parser",
|
||||||
"version": "v0.1.1",
|
"version": "v0.1.2",
|
||||||
"version_normalized": "0.1.1.0",
|
"version_normalized": "0.1.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/microsoft/tolerant-php-parser.git",
|
"url": "https://github.com/microsoft/tolerant-php-parser.git",
|
||||||
"reference": "6a965617cf484355048ac6d2d3de7b6ec93abb16"
|
"reference": "3eccfd273323aaf69513e2f1c888393f5947804b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/microsoft/tolerant-php-parser/zipball/6a965617cf484355048ac6d2d3de7b6ec93abb16",
|
"url": "https://api.github.com/repos/microsoft/tolerant-php-parser/zipball/3eccfd273323aaf69513e2f1c888393f5947804b",
|
||||||
"reference": "6a965617cf484355048ac6d2d3de7b6ec93abb16",
|
"reference": "3eccfd273323aaf69513e2f1c888393f5947804b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -369,7 +369,7 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^8.5.15"
|
"phpunit/phpunit": "^8.5.15"
|
||||||
},
|
},
|
||||||
"time": "2021-07-16T21:28:12+00:00",
|
"time": "2022-10-05T17:30:19+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -392,23 +392,23 @@
|
|||||||
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
|
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/microsoft/tolerant-php-parser/issues",
|
"issues": "https://github.com/microsoft/tolerant-php-parser/issues",
|
||||||
"source": "https://github.com/microsoft/tolerant-php-parser/tree/v0.1.1"
|
"source": "https://github.com/microsoft/tolerant-php-parser/tree/v0.1.2"
|
||||||
},
|
},
|
||||||
"install-path": "../microsoft/tolerant-php-parser"
|
"install-path": "../microsoft/tolerant-php-parser"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "myclabs/deep-copy",
|
"name": "myclabs/deep-copy",
|
||||||
"version": "1.11.0",
|
"version": "1.11.1",
|
||||||
"version_normalized": "1.11.0.0",
|
"version_normalized": "1.11.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/myclabs/DeepCopy.git",
|
"url": "https://github.com/myclabs/DeepCopy.git",
|
||||||
"reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614"
|
"reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614",
|
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
|
||||||
"reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614",
|
"reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -423,7 +423,7 @@
|
|||||||
"doctrine/common": "^2.13.3 || ^3.2.2",
|
"doctrine/common": "^2.13.3 || ^3.2.2",
|
||||||
"phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
|
"phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
|
||||||
},
|
},
|
||||||
"time": "2022-03-03T13:19:32+00:00",
|
"time": "2023-03-08T13:26:56+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -448,7 +448,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/myclabs/DeepCopy/issues",
|
"issues": "https://github.com/myclabs/DeepCopy/issues",
|
||||||
"source": "https://github.com/myclabs/DeepCopy/tree/1.11.0"
|
"source": "https://github.com/myclabs/DeepCopy/tree/1.11.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -514,17 +514,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nikic/php-parser",
|
"name": "nikic/php-parser",
|
||||||
"version": "v4.15.3",
|
"version": "v4.15.4",
|
||||||
"version_normalized": "4.15.3.0",
|
"version_normalized": "4.15.4.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||||
"reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039"
|
"reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/570e980a201d8ed0236b0a62ddf2c9cbb2034039",
|
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290",
|
||||||
"reference": "570e980a201d8ed0236b0a62ddf2c9cbb2034039",
|
"reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -535,7 +535,7 @@
|
|||||||
"ircmaxell/php-yacc": "^0.0.7",
|
"ircmaxell/php-yacc": "^0.0.7",
|
||||||
"phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
|
"phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
|
||||||
},
|
},
|
||||||
"time": "2023-01-16T22:05:37+00:00",
|
"time": "2023-03-05T19:49:14+00:00",
|
||||||
"bin": [
|
"bin": [
|
||||||
"bin/php-parse"
|
"bin/php-parse"
|
||||||
],
|
],
|
||||||
@@ -567,23 +567,23 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.3"
|
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4"
|
||||||
},
|
},
|
||||||
"install-path": "../nikic/php-parser"
|
"install-path": "../nikic/php-parser"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phan/phan",
|
"name": "phan/phan",
|
||||||
"version": "5.4.1",
|
"version": "5.4.2",
|
||||||
"version_normalized": "5.4.1.0",
|
"version_normalized": "5.4.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phan/phan.git",
|
"url": "https://github.com/phan/phan.git",
|
||||||
"reference": "fef40178a952bcfcc3f69b76989dd613c3d5c759"
|
"reference": "4f2870ed6fea320f62f3c3c63f3274d357a7980e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phan/phan/zipball/fef40178a952bcfcc3f69b76989dd613c3d5c759",
|
"url": "https://api.github.com/repos/phan/phan/zipball/4f2870ed6fea320f62f3c3c63f3274d357a7980e",
|
||||||
"reference": "fef40178a952bcfcc3f69b76989dd613c3d5c759",
|
"reference": "4f2870ed6fea320f62f3c3c63f3274d357a7980e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -593,7 +593,7 @@
|
|||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-tokenizer": "*",
|
"ext-tokenizer": "*",
|
||||||
"felixfbecker/advanced-json-rpc": "^3.0.4",
|
"felixfbecker/advanced-json-rpc": "^3.0.4",
|
||||||
"microsoft/tolerant-php-parser": "0.1.1",
|
"microsoft/tolerant-php-parser": "0.1.2",
|
||||||
"netresearch/jsonmapper": "^1.6.0|^2.0|^3.0|^4.0",
|
"netresearch/jsonmapper": "^1.6.0|^2.0|^3.0|^4.0",
|
||||||
"php": "^7.2.0|^8.0.0",
|
"php": "^7.2.0|^8.0.0",
|
||||||
"sabre/event": "^5.1.3",
|
"sabre/event": "^5.1.3",
|
||||||
@@ -613,7 +613,7 @@
|
|||||||
"ext-tokenizer": "Needed for fallback/polyfill parser support and file/line-based suppressions.",
|
"ext-tokenizer": "Needed for fallback/polyfill parser support and file/line-based suppressions.",
|
||||||
"ext-var_representation": "Suggested for converting values to strings in issue messages"
|
"ext-var_representation": "Suggested for converting values to strings in issue messages"
|
||||||
},
|
},
|
||||||
"time": "2022-08-26T00:49:07+00:00",
|
"time": "2023-03-03T17:20:24+00:00",
|
||||||
"bin": [
|
"bin": [
|
||||||
"phan",
|
"phan",
|
||||||
"phan_client",
|
"phan_client",
|
||||||
@@ -649,7 +649,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/phan/phan/issues",
|
"issues": "https://github.com/phan/phan/issues",
|
||||||
"source": "https://github.com/phan/phan/tree/5.4.1"
|
"source": "https://github.com/phan/phan/tree/5.4.2"
|
||||||
},
|
},
|
||||||
"install-path": "../phan/phan"
|
"install-path": "../phan/phan"
|
||||||
},
|
},
|
||||||
@@ -946,17 +946,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpstan",
|
"name": "phpstan/phpstan",
|
||||||
"version": "1.9.17",
|
"version": "1.10.6",
|
||||||
"version_normalized": "1.9.17.0",
|
"version_normalized": "1.10.6.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpstan/phpstan.git",
|
"url": "https://github.com/phpstan/phpstan.git",
|
||||||
"reference": "204e459e7822f2c586463029f5ecec31bb45a1f2"
|
"reference": "50d089a3e0904b0fe7e2cf2d4fd37d427d64235a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/204e459e7822f2c586463029f5ecec31bb45a1f2",
|
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/50d089a3e0904b0fe7e2cf2d4fd37d427d64235a",
|
||||||
"reference": "204e459e7822f2c586463029f5ecec31bb45a1f2",
|
"reference": "50d089a3e0904b0fe7e2cf2d4fd37d427d64235a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -965,7 +965,7 @@
|
|||||||
"conflict": {
|
"conflict": {
|
||||||
"phpstan/phpstan-shim": "*"
|
"phpstan/phpstan-shim": "*"
|
||||||
},
|
},
|
||||||
"time": "2023-02-08T12:25:00+00:00",
|
"time": "2023-03-09T16:55:12+00:00",
|
||||||
"bin": [
|
"bin": [
|
||||||
"phpstan",
|
"phpstan",
|
||||||
"phpstan.phar"
|
"phpstan.phar"
|
||||||
@@ -988,7 +988,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/phpstan/phpstan/issues",
|
"issues": "https://github.com/phpstan/phpstan/issues",
|
||||||
"source": "https://github.com/phpstan/phpstan/tree/1.9.17"
|
"source": "https://github.com/phpstan/phpstan/tree/1.10.6"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1008,24 +1008,24 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-code-coverage",
|
"name": "phpunit/php-code-coverage",
|
||||||
"version": "9.2.24",
|
"version": "9.2.26",
|
||||||
"version_normalized": "9.2.24.0",
|
"version_normalized": "9.2.26.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
|
||||||
"reference": "2cf940ebc6355a9d430462811b5aaa308b174bed"
|
"reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed",
|
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/443bc6912c9bd5b409254a40f4b0f4ced7c80ea1",
|
||||||
"reference": "2cf940ebc6355a9d430462811b5aaa308b174bed",
|
"reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
"ext-libxml": "*",
|
"ext-libxml": "*",
|
||||||
"ext-xmlwriter": "*",
|
"ext-xmlwriter": "*",
|
||||||
"nikic/php-parser": "^4.14",
|
"nikic/php-parser": "^4.15",
|
||||||
"php": ">=7.3",
|
"php": ">=7.3",
|
||||||
"phpunit/php-file-iterator": "^3.0.3",
|
"phpunit/php-file-iterator": "^3.0.3",
|
||||||
"phpunit/php-text-template": "^2.0.2",
|
"phpunit/php-text-template": "^2.0.2",
|
||||||
@@ -1040,10 +1040,10 @@
|
|||||||
"phpunit/phpunit": "^9.3"
|
"phpunit/phpunit": "^9.3"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-pcov": "*",
|
"ext-pcov": "PHP extension that provides line coverage",
|
||||||
"ext-xdebug": "*"
|
"ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
|
||||||
},
|
},
|
||||||
"time": "2023-01-26T08:26:55+00:00",
|
"time": "2023-03-06T12:58:08+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
@@ -1076,7 +1076,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
|
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
|
||||||
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24"
|
"source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.26"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1341,17 +1341,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "9.6.3",
|
"version": "9.6.5",
|
||||||
"version_normalized": "9.6.3.0",
|
"version_normalized": "9.6.5.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555"
|
"reference": "86e761949019ae83f49240b2f2123fb5ab3b2fc5"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e7b1615e3e887d6c719121c6d4a44b0ab9645555",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/86e761949019ae83f49240b2f2123fb5ab3b2fc5",
|
||||||
"reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555",
|
"reference": "86e761949019ae83f49240b2f2123fb5ab3b2fc5",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1384,10 +1384,10 @@
|
|||||||
"sebastian/version": "^3.0.2"
|
"sebastian/version": "^3.0.2"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-soap": "*",
|
"ext-soap": "To be able to generate mocks based on WSDL files",
|
||||||
"ext-xdebug": "*"
|
"ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
|
||||||
},
|
},
|
||||||
"time": "2023-02-04T13:37:15+00:00",
|
"time": "2023-03-09T06:34:10+00:00",
|
||||||
"bin": [
|
"bin": [
|
||||||
"phpunit"
|
"phpunit"
|
||||||
],
|
],
|
||||||
@@ -1426,7 +1426,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.3"
|
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.5"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2636,17 +2636,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/console",
|
"name": "symfony/console",
|
||||||
"version": "v6.2.5",
|
"version": "v6.2.7",
|
||||||
"version_normalized": "6.2.5.0",
|
"version_normalized": "6.2.7.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/console.git",
|
"url": "https://github.com/symfony/console.git",
|
||||||
"reference": "3e294254f2191762c1d137aed4b94e966965e985"
|
"reference": "cbad09eb8925b6ad4fb721c7a179344dc4a19d45"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/console/zipball/3e294254f2191762c1d137aed4b94e966965e985",
|
"url": "https://api.github.com/repos/symfony/console/zipball/cbad09eb8925b6ad4fb721c7a179344dc4a19d45",
|
||||||
"reference": "3e294254f2191762c1d137aed4b94e966965e985",
|
"reference": "cbad09eb8925b6ad4fb721c7a179344dc4a19d45",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2681,7 +2681,7 @@
|
|||||||
"symfony/lock": "",
|
"symfony/lock": "",
|
||||||
"symfony/process": ""
|
"symfony/process": ""
|
||||||
},
|
},
|
||||||
"time": "2023-01-01T08:38:09+00:00",
|
"time": "2023-02-25T17:00:03+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -2715,7 +2715,7 @@
|
|||||||
"terminal"
|
"terminal"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/console/tree/v6.2.5"
|
"source": "https://github.com/symfony/console/tree/v6.2.7"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2735,23 +2735,23 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/deprecation-contracts",
|
"name": "symfony/deprecation-contracts",
|
||||||
"version": "v3.2.0",
|
"version": "v3.2.1",
|
||||||
"version_normalized": "3.2.0.0",
|
"version_normalized": "3.2.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/deprecation-contracts.git",
|
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||||
"reference": "1ee04c65529dea5d8744774d474e7cbd2f1206d3"
|
"reference": "e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/1ee04c65529dea5d8744774d474e7cbd2f1206d3",
|
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e",
|
||||||
"reference": "1ee04c65529dea5d8744774d474e7cbd2f1206d3",
|
"reference": "e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.1"
|
"php": ">=8.1"
|
||||||
},
|
},
|
||||||
"time": "2022-11-25T10:21:52+00:00",
|
"time": "2023-03-01T10:25:55+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
@@ -2785,7 +2785,7 @@
|
|||||||
"description": "A generic function and convention to trigger deprecation notices",
|
"description": "A generic function and convention to trigger deprecation notices",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.2.0"
|
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.2.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -3233,17 +3233,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
"version": "v3.2.0",
|
"version": "v3.2.1",
|
||||||
"version_normalized": "3.2.0.0",
|
"version_normalized": "3.2.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/service-contracts.git",
|
"url": "https://github.com/symfony/service-contracts.git",
|
||||||
"reference": "aac98028c69df04ee77eb69b96b86ee51fbf4b75"
|
"reference": "a8c9cedf55f314f3a186041d19537303766df09a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/aac98028c69df04ee77eb69b96b86ee51fbf4b75",
|
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/a8c9cedf55f314f3a186041d19537303766df09a",
|
||||||
"reference": "aac98028c69df04ee77eb69b96b86ee51fbf4b75",
|
"reference": "a8c9cedf55f314f3a186041d19537303766df09a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3256,7 +3256,7 @@
|
|||||||
"suggest": {
|
"suggest": {
|
||||||
"symfony/service-implementation": ""
|
"symfony/service-implementation": ""
|
||||||
},
|
},
|
||||||
"time": "2022-11-25T10:21:52+00:00",
|
"time": "2023-03-01T10:32:47+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
@@ -3301,7 +3301,7 @@
|
|||||||
"standards"
|
"standards"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/service-contracts/tree/v3.2.0"
|
"source": "https://github.com/symfony/service-contracts/tree/v3.2.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -3321,17 +3321,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/string",
|
"name": "symfony/string",
|
||||||
"version": "v6.2.5",
|
"version": "v6.2.7",
|
||||||
"version_normalized": "6.2.5.0",
|
"version_normalized": "6.2.7.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/string.git",
|
"url": "https://github.com/symfony/string.git",
|
||||||
"reference": "b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0"
|
"reference": "67b8c1eec78296b85dc1c7d9743830160218993d"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/string/zipball/b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0",
|
"url": "https://api.github.com/repos/symfony/string/zipball/67b8c1eec78296b85dc1c7d9743830160218993d",
|
||||||
"reference": "b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0",
|
"reference": "67b8c1eec78296b85dc1c7d9743830160218993d",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3351,7 +3351,7 @@
|
|||||||
"symfony/translation-contracts": "^2.0|^3.0",
|
"symfony/translation-contracts": "^2.0|^3.0",
|
||||||
"symfony/var-exporter": "^5.4|^6.0"
|
"symfony/var-exporter": "^5.4|^6.0"
|
||||||
},
|
},
|
||||||
"time": "2023-01-01T08:38:09+00:00",
|
"time": "2023-02-24T10:42:00+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -3390,7 +3390,7 @@
|
|||||||
"utf8"
|
"utf8"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/string/tree/v6.2.5"
|
"source": "https://github.com/symfony/string/tree/v6.2.7"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
|||||||
70
vendor/composer/installed.php
vendored
70
vendor/composer/installed.php
vendored
@@ -3,7 +3,7 @@
|
|||||||
'name' => '__root__',
|
'name' => '__root__',
|
||||||
'pretty_version' => 'dev-master',
|
'pretty_version' => 'dev-master',
|
||||||
'version' => 'dev-master',
|
'version' => 'dev-master',
|
||||||
'reference' => 'b696338324ee48918a63d6347fd72343fc63f3ce',
|
'reference' => '1cbe4e5c06aec83ca037690cb9621e39312b9247',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
'__root__' => array(
|
'__root__' => array(
|
||||||
'pretty_version' => 'dev-master',
|
'pretty_version' => 'dev-master',
|
||||||
'version' => 'dev-master',
|
'version' => 'dev-master',
|
||||||
'reference' => 'b696338324ee48918a63d6347fd72343fc63f3ce',
|
'reference' => '1cbe4e5c06aec83ca037690cb9621e39312b9247',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -65,18 +65,18 @@
|
|||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'microsoft/tolerant-php-parser' => array(
|
'microsoft/tolerant-php-parser' => array(
|
||||||
'pretty_version' => 'v0.1.1',
|
'pretty_version' => 'v0.1.2',
|
||||||
'version' => '0.1.1.0',
|
'version' => '0.1.2.0',
|
||||||
'reference' => '6a965617cf484355048ac6d2d3de7b6ec93abb16',
|
'reference' => '3eccfd273323aaf69513e2f1c888393f5947804b',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../microsoft/tolerant-php-parser',
|
'install_path' => __DIR__ . '/../microsoft/tolerant-php-parser',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'myclabs/deep-copy' => array(
|
'myclabs/deep-copy' => array(
|
||||||
'pretty_version' => '1.11.0',
|
'pretty_version' => '1.11.1',
|
||||||
'version' => '1.11.0.0',
|
'version' => '1.11.1.0',
|
||||||
'reference' => '14daed4296fae74d9e3201d2c4925d1acb7aa614',
|
'reference' => '7284c22080590fb39f2ffa3e9057f10a4ddd0e0c',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../myclabs/deep-copy',
|
'install_path' => __DIR__ . '/../myclabs/deep-copy',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -92,18 +92,18 @@
|
|||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'nikic/php-parser' => array(
|
'nikic/php-parser' => array(
|
||||||
'pretty_version' => 'v4.15.3',
|
'pretty_version' => 'v4.15.4',
|
||||||
'version' => '4.15.3.0',
|
'version' => '4.15.4.0',
|
||||||
'reference' => '570e980a201d8ed0236b0a62ddf2c9cbb2034039',
|
'reference' => '6bb5176bc4af8bcb7d926f88718db9b96a2d4290',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../nikic/php-parser',
|
'install_path' => __DIR__ . '/../nikic/php-parser',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'phan/phan' => array(
|
'phan/phan' => array(
|
||||||
'pretty_version' => '5.4.1',
|
'pretty_version' => '5.4.2',
|
||||||
'version' => '5.4.1.0',
|
'version' => '5.4.2.0',
|
||||||
'reference' => 'fef40178a952bcfcc3f69b76989dd613c3d5c759',
|
'reference' => '4f2870ed6fea320f62f3c3c63f3274d357a7980e',
|
||||||
'type' => 'project',
|
'type' => 'project',
|
||||||
'install_path' => __DIR__ . '/../phan/phan',
|
'install_path' => __DIR__ . '/../phan/phan',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -155,18 +155,18 @@
|
|||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'phpstan/phpstan' => array(
|
'phpstan/phpstan' => array(
|
||||||
'pretty_version' => '1.9.17',
|
'pretty_version' => '1.10.6',
|
||||||
'version' => '1.9.17.0',
|
'version' => '1.10.6.0',
|
||||||
'reference' => '204e459e7822f2c586463029f5ecec31bb45a1f2',
|
'reference' => '50d089a3e0904b0fe7e2cf2d4fd37d427d64235a',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../phpstan/phpstan',
|
'install_path' => __DIR__ . '/../phpstan/phpstan',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'phpunit/php-code-coverage' => array(
|
'phpunit/php-code-coverage' => array(
|
||||||
'pretty_version' => '9.2.24',
|
'pretty_version' => '9.2.26',
|
||||||
'version' => '9.2.24.0',
|
'version' => '9.2.26.0',
|
||||||
'reference' => '2cf940ebc6355a9d430462811b5aaa308b174bed',
|
'reference' => '443bc6912c9bd5b409254a40f4b0f4ced7c80ea1',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../phpunit/php-code-coverage',
|
'install_path' => __DIR__ . '/../phpunit/php-code-coverage',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -209,9 +209,9 @@
|
|||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'phpunit/phpunit' => array(
|
'phpunit/phpunit' => array(
|
||||||
'pretty_version' => '9.6.3',
|
'pretty_version' => '9.6.5',
|
||||||
'version' => '9.6.3.0',
|
'version' => '9.6.5.0',
|
||||||
'reference' => 'e7b1615e3e887d6c719121c6d4a44b0ab9645555',
|
'reference' => '86e761949019ae83f49240b2f2123fb5ab3b2fc5',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../phpunit/phpunit',
|
'install_path' => __DIR__ . '/../phpunit/phpunit',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -395,18 +395,18 @@
|
|||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'symfony/console' => array(
|
'symfony/console' => array(
|
||||||
'pretty_version' => 'v6.2.5',
|
'pretty_version' => 'v6.2.7',
|
||||||
'version' => '6.2.5.0',
|
'version' => '6.2.7.0',
|
||||||
'reference' => '3e294254f2191762c1d137aed4b94e966965e985',
|
'reference' => 'cbad09eb8925b6ad4fb721c7a179344dc4a19d45',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../symfony/console',
|
'install_path' => __DIR__ . '/../symfony/console',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'symfony/deprecation-contracts' => array(
|
'symfony/deprecation-contracts' => array(
|
||||||
'pretty_version' => 'v3.2.0',
|
'pretty_version' => 'v3.2.1',
|
||||||
'version' => '3.2.0.0',
|
'version' => '3.2.1.0',
|
||||||
'reference' => '1ee04c65529dea5d8744774d474e7cbd2f1206d3',
|
'reference' => 'e2d1534420bd723d0ef5aec58a22c5fe60ce6f5e',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
|
'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
@@ -458,18 +458,18 @@
|
|||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'symfony/service-contracts' => array(
|
'symfony/service-contracts' => array(
|
||||||
'pretty_version' => 'v3.2.0',
|
'pretty_version' => 'v3.2.1',
|
||||||
'version' => '3.2.0.0',
|
'version' => '3.2.1.0',
|
||||||
'reference' => 'aac98028c69df04ee77eb69b96b86ee51fbf4b75',
|
'reference' => 'a8c9cedf55f314f3a186041d19537303766df09a',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../symfony/service-contracts',
|
'install_path' => __DIR__ . '/../symfony/service-contracts',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'dev_requirement' => true,
|
'dev_requirement' => true,
|
||||||
),
|
),
|
||||||
'symfony/string' => array(
|
'symfony/string' => array(
|
||||||
'pretty_version' => 'v6.2.5',
|
'pretty_version' => 'v6.2.7',
|
||||||
'version' => '6.2.5.0',
|
'version' => '6.2.7.0',
|
||||||
'reference' => 'b2dac0fa27b1ac0f9c0c0b23b43977f12308d0b0',
|
'reference' => '67b8c1eec78296b85dc1c7d9743830160218993d',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../symfony/string',
|
'install_path' => __DIR__ . '/../symfony/string',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
parameters:
|
|
||||||
level: 2
|
|
||||||
paths:
|
|
||||||
- src/
|
|
||||||
ignoreErrors:
|
|
||||||
# phpstan issue, see: https://github.com/phpstan/phpstan/issues/1306
|
|
||||||
- "/Variable .unaryExpression might not be defined./"
|
|
||||||
@@ -31,7 +31,7 @@ trait NamespacedNameTrait {
|
|||||||
return ResolvedName::buildName($this->getNameParts(), $content);
|
return ResolvedName::buildName($this->getNameParts(), $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($namespaceDefinition->name !== null) {
|
if ($namespaceDefinition->name instanceof QualifiedName) {
|
||||||
$resolvedName = ResolvedName::buildName($namespaceDefinition->name->nameParts, $content);
|
$resolvedName = ResolvedName::buildName($namespaceDefinition->name->nameParts, $content);
|
||||||
} else {
|
} else {
|
||||||
$resolvedName = ResolvedName::buildName([], $content);
|
$resolvedName = ResolvedName::buildName([], $content);
|
||||||
@@ -47,4 +47,4 @@ trait NamespacedNameTrait {
|
|||||||
}
|
}
|
||||||
return $resolvedName;
|
return $resolvedName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ abstract class Node implements \JsonSerializable {
|
|||||||
* Gets first child that is an instance of one of the provided classes.
|
* Gets first child that is an instance of one of the provided classes.
|
||||||
* Returns null if there is no match.
|
* Returns null if there is no match.
|
||||||
*
|
*
|
||||||
* @param array ...$classNames
|
* @param string ...$classNames
|
||||||
* @return Node|null
|
* @return Node|null
|
||||||
*/
|
*/
|
||||||
public function getFirstChildNode(...$classNames) {
|
public function getFirstChildNode(...$classNames) {
|
||||||
@@ -117,7 +117,7 @@ abstract class Node implements \JsonSerializable {
|
|||||||
* Gets first descendant node that is an instance of one of the provided classes.
|
* Gets first descendant node that is an instance of one of the provided classes.
|
||||||
* Returns null if there is no match.
|
* Returns null if there is no match.
|
||||||
*
|
*
|
||||||
* @param array ...$classNames
|
* @param string ...$classNames
|
||||||
* @return Node|null
|
* @return Node|null
|
||||||
*/
|
*/
|
||||||
public function getFirstDescendantNode(...$classNames) {
|
public function getFirstDescendantNode(...$classNames) {
|
||||||
@@ -417,7 +417,7 @@ abstract class Node implements \JsonSerializable {
|
|||||||
return $this->getRoot()->fileContents;
|
return $this->getRoot()->fileContents;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUri() : string {
|
public function getUri() : ?string {
|
||||||
return $this->getRoot()->uri;
|
return $this->getRoot()->uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ namespace Microsoft\PhpParser\Node\Expression;
|
|||||||
|
|
||||||
use Microsoft\PhpParser\Node\DelimitedList;
|
use Microsoft\PhpParser\Node\DelimitedList;
|
||||||
use Microsoft\PhpParser\Node\Expression;
|
use Microsoft\PhpParser\Node\Expression;
|
||||||
|
use Microsoft\PhpParser\Node\QualifiedName;
|
||||||
use Microsoft\PhpParser\Token;
|
use Microsoft\PhpParser\Token;
|
||||||
|
|
||||||
class CallExpression extends Expression {
|
class CallExpression extends Expression {
|
||||||
/** @var Expression */
|
/** @var QualifiedName|Expression */
|
||||||
public $callableExpression;
|
public $callableExpression;
|
||||||
|
|
||||||
/** @var Token */
|
/** @var Token */
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class YieldExpression extends Expression {
|
|||||||
/** @var Token */
|
/** @var Token */
|
||||||
public $yieldOrYieldFromKeyword;
|
public $yieldOrYieldFromKeyword;
|
||||||
|
|
||||||
/** @var ArrayElement */
|
/** @var ArrayElement|null */
|
||||||
public $arrayElement;
|
public $arrayElement;
|
||||||
|
|
||||||
const CHILD_NAMES = ['yieldOrYieldFromKeyword', 'arrayElement'];
|
const CHILD_NAMES = ['yieldOrYieldFromKeyword', 'arrayElement'];
|
||||||
|
|||||||
29
vendor/microsoft/tolerant-php-parser/src/Node/ParenthesizedIntersectionType.php
vendored
Normal file
29
vendor/microsoft/tolerant-php-parser/src/Node/ParenthesizedIntersectionType.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
namespace Microsoft\PhpParser\Node;
|
||||||
|
|
||||||
|
use Microsoft\PhpParser\MissingToken;
|
||||||
|
use Microsoft\PhpParser\Node;
|
||||||
|
use Microsoft\PhpParser\Node\DelimitedList\QualifiedNameList;
|
||||||
|
use Microsoft\PhpParser\Token;
|
||||||
|
|
||||||
|
class ParenthesizedIntersectionType extends Node{
|
||||||
|
/** @var Token */
|
||||||
|
public $openParen;
|
||||||
|
|
||||||
|
/** @var QualifiedNameList|MissingToken */
|
||||||
|
public $children;
|
||||||
|
|
||||||
|
/** @var Token */
|
||||||
|
public $closeParen;
|
||||||
|
|
||||||
|
const CHILD_NAMES = [
|
||||||
|
'openParen',
|
||||||
|
'children',
|
||||||
|
'closeParen'
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -13,7 +13,7 @@ class SourceFileNode extends Node {
|
|||||||
/** @var string */
|
/** @var string */
|
||||||
public $fileContents;
|
public $fileContents;
|
||||||
|
|
||||||
/** @var string */
|
/** @var ?string */
|
||||||
public $uri;
|
public $uri;
|
||||||
|
|
||||||
/** @var Node[] */
|
/** @var Node[] */
|
||||||
|
|||||||
@@ -22,9 +22,12 @@ class ClassDeclaration extends StatementNode implements NamespacedNameInterface,
|
|||||||
/** @var AttributeGroup[]|null */
|
/** @var AttributeGroup[]|null */
|
||||||
public $attributes;
|
public $attributes;
|
||||||
|
|
||||||
/** @var Token */
|
/** @var Token abstract/final/readonly modifier */
|
||||||
public $abstractOrFinalModifier;
|
public $abstractOrFinalModifier;
|
||||||
|
|
||||||
|
/** @var Token[] additional abstract/final/readonly modifiers */
|
||||||
|
public $modifiers;
|
||||||
|
|
||||||
/** @var Token */
|
/** @var Token */
|
||||||
public $classKeyword;
|
public $classKeyword;
|
||||||
|
|
||||||
@@ -43,6 +46,7 @@ class ClassDeclaration extends StatementNode implements NamespacedNameInterface,
|
|||||||
const CHILD_NAMES = [
|
const CHILD_NAMES = [
|
||||||
'attributes',
|
'attributes',
|
||||||
'abstractOrFinalModifier',
|
'abstractOrFinalModifier',
|
||||||
|
'modifiers',
|
||||||
'classKeyword',
|
'classKeyword',
|
||||||
'name',
|
'name',
|
||||||
'classBaseClause',
|
'classBaseClause',
|
||||||
|
|||||||
45
vendor/microsoft/tolerant-php-parser/src/Node/Statement/HaltCompilerStatement.php
vendored
Normal file
45
vendor/microsoft/tolerant-php-parser/src/Node/Statement/HaltCompilerStatement.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
namespace Microsoft\PhpParser\Node\Statement;
|
||||||
|
|
||||||
|
use Microsoft\PhpParser\Node\Expression;
|
||||||
|
use Microsoft\PhpParser\Token;
|
||||||
|
|
||||||
|
class HaltCompilerStatement extends Expression {
|
||||||
|
|
||||||
|
/** @var Token */
|
||||||
|
public $haltCompilerKeyword;
|
||||||
|
|
||||||
|
/** @var Token */
|
||||||
|
public $openParen;
|
||||||
|
|
||||||
|
/** @var Token */
|
||||||
|
public $closeParen;
|
||||||
|
|
||||||
|
/** @var Token (there is an implicit ')' before php close tags (`?>`)) */
|
||||||
|
public $semicolonOrCloseTag;
|
||||||
|
|
||||||
|
/** @var Token|null TokenKind::InlineHtml data unless there are no bytes (This is optional if there is nothing after the semicolon) */
|
||||||
|
public $data;
|
||||||
|
|
||||||
|
const CHILD_NAMES = [
|
||||||
|
'haltCompilerKeyword',
|
||||||
|
'openParen',
|
||||||
|
'closeParen',
|
||||||
|
'semicolonOrCloseTag',
|
||||||
|
'data',
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
public function getHaltCompilerOffset() {
|
||||||
|
// This accounts for the fact that PHP close tags may include a single newline,
|
||||||
|
// and that $this->data may be null.
|
||||||
|
return $this->semicolonOrCloseTag->getEndPosition();
|
||||||
|
}
|
||||||
|
}
|
||||||
276
vendor/microsoft/tolerant-php-parser/src/Parser.php
vendored
276
vendor/microsoft/tolerant-php-parser/src/Parser.php
vendored
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
namespace Microsoft\PhpParser;
|
namespace Microsoft\PhpParser;
|
||||||
|
|
||||||
|
use Closure;
|
||||||
use Microsoft\PhpParser\Node\AnonymousFunctionUseClause;
|
use Microsoft\PhpParser\Node\AnonymousFunctionUseClause;
|
||||||
use Microsoft\PhpParser\Node\ArrayElement;
|
use Microsoft\PhpParser\Node\ArrayElement;
|
||||||
use Microsoft\PhpParser\Node\Attribute;
|
use Microsoft\PhpParser\Node\Attribute;
|
||||||
@@ -70,6 +71,7 @@ use Microsoft\PhpParser\Node\MissingMemberDeclaration;
|
|||||||
use Microsoft\PhpParser\Node\NamespaceAliasingClause;
|
use Microsoft\PhpParser\Node\NamespaceAliasingClause;
|
||||||
use Microsoft\PhpParser\Node\NamespaceUseGroupClause;
|
use Microsoft\PhpParser\Node\NamespaceUseGroupClause;
|
||||||
use Microsoft\PhpParser\Node\NumericLiteral;
|
use Microsoft\PhpParser\Node\NumericLiteral;
|
||||||
|
use Microsoft\PhpParser\Node\ParenthesizedIntersectionType;
|
||||||
use Microsoft\PhpParser\Node\PropertyDeclaration;
|
use Microsoft\PhpParser\Node\PropertyDeclaration;
|
||||||
use Microsoft\PhpParser\Node\ReservedWord;
|
use Microsoft\PhpParser\Node\ReservedWord;
|
||||||
use Microsoft\PhpParser\Node\StringLiteral;
|
use Microsoft\PhpParser\Node\StringLiteral;
|
||||||
@@ -95,6 +97,7 @@ use Microsoft\PhpParser\Node\Statement\{
|
|||||||
ForStatement,
|
ForStatement,
|
||||||
FunctionDeclaration,
|
FunctionDeclaration,
|
||||||
GotoStatement,
|
GotoStatement,
|
||||||
|
HaltCompilerStatement,
|
||||||
IfStatementNode,
|
IfStatementNode,
|
||||||
InlineHtml,
|
InlineHtml,
|
||||||
InterfaceDeclaration,
|
InterfaceDeclaration,
|
||||||
@@ -144,8 +147,9 @@ class Parser {
|
|||||||
[TokenKind::ArrayKeyword, TokenKind::CallableKeyword, TokenKind::BoolReservedWord,
|
[TokenKind::ArrayKeyword, TokenKind::CallableKeyword, TokenKind::BoolReservedWord,
|
||||||
TokenKind::FloatReservedWord, TokenKind::IntReservedWord, TokenKind::StringReservedWord,
|
TokenKind::FloatReservedWord, TokenKind::IntReservedWord, TokenKind::StringReservedWord,
|
||||||
TokenKind::ObjectReservedWord, TokenKind::NullReservedWord, TokenKind::FalseReservedWord,
|
TokenKind::ObjectReservedWord, TokenKind::NullReservedWord, TokenKind::FalseReservedWord,
|
||||||
TokenKind::IterableReservedWord, TokenKind::MixedReservedWord]; // TODO update spec
|
TokenKind::TrueReservedWord, TokenKind::IterableReservedWord, TokenKind::MixedReservedWord,
|
||||||
$this->returnTypeDeclarationTokens = \array_merge([TokenKind::VoidReservedWord, TokenKind::NullReservedWord, TokenKind::FalseReservedWord, TokenKind::StaticKeyword], $this->parameterTypeDeclarationTokens);
|
TokenKind::VoidReservedWord, TokenKind::NeverReservedWord]; // TODO update spec
|
||||||
|
$this->returnTypeDeclarationTokens = \array_merge([TokenKind::StaticKeyword], $this->parameterTypeDeclarationTokens);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -557,10 +561,8 @@ class Parser {
|
|||||||
// class-declaration
|
// class-declaration
|
||||||
case TokenKind::FinalKeyword:
|
case TokenKind::FinalKeyword:
|
||||||
case TokenKind::AbstractKeyword:
|
case TokenKind::AbstractKeyword:
|
||||||
if (!$this->lookahead(TokenKind::ClassKeyword)) {
|
case TokenKind::ReadonlyKeyword:
|
||||||
$this->advanceToken();
|
// fallthrough
|
||||||
return new SkippedToken($token);
|
|
||||||
}
|
|
||||||
case TokenKind::ClassKeyword:
|
case TokenKind::ClassKeyword:
|
||||||
return $this->parseClassDeclaration($parentNode);
|
return $this->parseClassDeclaration($parentNode);
|
||||||
|
|
||||||
@@ -614,6 +616,15 @@ class Parser {
|
|||||||
|
|
||||||
case TokenKind::UnsetKeyword:
|
case TokenKind::UnsetKeyword:
|
||||||
return $this->parseUnsetStatement($parentNode);
|
return $this->parseUnsetStatement($parentNode);
|
||||||
|
|
||||||
|
case TokenKind::HaltCompilerKeyword:
|
||||||
|
if ($parentNode instanceof SourceFileNode) {
|
||||||
|
return $this->parseHaltCompilerStatement($parentNode);
|
||||||
|
}
|
||||||
|
// __halt_compiler is a fatal compile error anywhere other than the top level.
|
||||||
|
// It won't be seen elsewhere in other programs - warn about the token being unexpected.
|
||||||
|
$this->advanceToken();
|
||||||
|
return new SkippedToken($token);
|
||||||
}
|
}
|
||||||
|
|
||||||
$expressionStatement = new ExpressionStatement();
|
$expressionStatement = new ExpressionStatement();
|
||||||
@@ -657,10 +668,20 @@ class Parser {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @return Token[] */
|
||||||
|
private function parseClassModifiers(): array {
|
||||||
|
$modifiers = [];
|
||||||
|
while ($token = $this->eatOptional(TokenKind::AbstractKeyword, TokenKind::FinalKeyword, TokenKind::ReadonlyKeyword)) {
|
||||||
|
$modifiers[] = $token;
|
||||||
|
}
|
||||||
|
return $modifiers;
|
||||||
|
}
|
||||||
|
|
||||||
private function parseClassDeclaration($parentNode) : Node {
|
private function parseClassDeclaration($parentNode) : Node {
|
||||||
$classNode = new ClassDeclaration(); // TODO verify not nested
|
$classNode = new ClassDeclaration(); // TODO verify not nested
|
||||||
$classNode->parent = $parentNode;
|
$classNode->parent = $parentNode;
|
||||||
$classNode->abstractOrFinalModifier = $this->eatOptional(TokenKind::AbstractKeyword, TokenKind::FinalKeyword);
|
$classNode->abstractOrFinalModifier = $this->eatOptional(TokenKind::AbstractKeyword, TokenKind::FinalKeyword, TokenKind::ReadonlyKeyword);
|
||||||
|
$classNode->modifiers = $this->parseClassModifiers();
|
||||||
$classNode->classKeyword = $this->eat1(TokenKind::ClassKeyword);
|
$classNode->classKeyword = $this->eat1(TokenKind::ClassKeyword);
|
||||||
$classNode->name = $this->eat($this->nameOrReservedWordTokens); // TODO should be any
|
$classNode->name = $this->eat($this->nameOrReservedWordTokens); // TODO should be any
|
||||||
$classNode->name->kind = TokenKind::Name;
|
$classNode->name->kind = TokenKind::Name;
|
||||||
@@ -838,9 +859,6 @@ class Parser {
|
|||||||
if (end($children) instanceof MissingToken && ($children[\count($children) - 2]->kind ?? null) === TokenKind::AmpersandToken) {
|
if (end($children) instanceof MissingToken && ($children[\count($children) - 2]->kind ?? null) === TokenKind::AmpersandToken) {
|
||||||
array_pop($parameter->typeDeclarationList->children);
|
array_pop($parameter->typeDeclarationList->children);
|
||||||
$parameter->byRefToken = array_pop($parameter->typeDeclarationList->children);
|
$parameter->byRefToken = array_pop($parameter->typeDeclarationList->children);
|
||||||
if (!$parameter->typeDeclarationList->children) {
|
|
||||||
unset($parameter->typeDeclarationList);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} elseif ($parameter->questionToken) {
|
} elseif ($parameter->questionToken) {
|
||||||
// TODO ParameterType?
|
// TODO ParameterType?
|
||||||
@@ -882,27 +900,22 @@ class Parser {
|
|||||||
/**
|
/**
|
||||||
* Attempt to parse the return type after the `:` and optional `?` token.
|
* Attempt to parse the return type after the `:` and optional `?` token.
|
||||||
*
|
*
|
||||||
|
* TODO: Consider changing the return type to a new class TypeList in a future major release?
|
||||||
|
* ParenthesizedIntersectionType is not a qualified name.
|
||||||
* @return DelimitedList\QualifiedNameList|null
|
* @return DelimitedList\QualifiedNameList|null
|
||||||
*/
|
*/
|
||||||
private function parseReturnTypeDeclarationList($parentNode) {
|
private function parseReturnTypeDeclarationList($parentNode) {
|
||||||
$result = $this->parseDelimitedList(
|
return $this->parseUnionTypeDeclarationList(
|
||||||
DelimitedList\QualifiedNameList::class,
|
$parentNode,
|
||||||
self::TYPE_DELIMITER_TOKENS,
|
function ($token): bool {
|
||||||
function ($token) {
|
return \in_array($token->kind, $this->returnTypeDeclarationTokens, true) ||
|
||||||
return \in_array($token->kind, $this->returnTypeDeclarationTokens, true) || $this->isQualifiedNameStart($token);
|
$this->isQualifiedNameStart($token);
|
||||||
},
|
},
|
||||||
function ($parentNode) {
|
function ($parentNode) {
|
||||||
return $this->parseReturnTypeDeclaration($parentNode);
|
return $this->parseReturnTypeDeclaration($parentNode);
|
||||||
},
|
},
|
||||||
$parentNode,
|
TokenKind::ReturnType
|
||||||
false);
|
);
|
||||||
|
|
||||||
// Add a MissingToken so that this will warn about `function () : T| {}`
|
|
||||||
// TODO: Make this a reusable abstraction?
|
|
||||||
if ($result && in_array(end($result->children)->kind ?? null, self::TYPE_DELIMITER_TOKENS)) {
|
|
||||||
$result->children[] = new MissingToken(TokenKind::ReturnType, $this->token->fullStart);
|
|
||||||
}
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function parseReturnTypeDeclaration($parentNode) {
|
private function parseReturnTypeDeclaration($parentNode) {
|
||||||
@@ -917,28 +930,109 @@ class Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Parse a union type such as A, A|B, A&B, A|(B&C), rejecting invalid syntax combinations.
|
||||||
|
*
|
||||||
* @param Node $parentNode
|
* @param Node $parentNode
|
||||||
|
* @param Closure(Token):bool $isTypeStart
|
||||||
|
* @param Closure(Node):(Node|Token|null) $parseType
|
||||||
|
* @param int $expectedTypeKind expected kind for token type
|
||||||
|
* @return DelimitedList\QualifiedNameList|null
|
||||||
|
*/
|
||||||
|
private function parseUnionTypeDeclarationList($parentNode, Closure $isTypeStart, Closure $parseType, int $expectedTypeKind) {
|
||||||
|
$result = new DelimitedList\QualifiedNameList();
|
||||||
|
$token = $this->getCurrentToken();
|
||||||
|
$delimiter = self::TYPE_DELIMITER_TOKENS;
|
||||||
|
do {
|
||||||
|
if ($token->kind === TokenKind::OpenParenToken || $isTypeStart($token)) {
|
||||||
|
// Forbid mixing A&(B&C) if '&' was already seen
|
||||||
|
$openParen = in_array(TokenKind::BarToken, $delimiter, true)
|
||||||
|
? $this->eatOptional(TokenKind::OpenParenToken)
|
||||||
|
: null;
|
||||||
|
if ($openParen) {
|
||||||
|
$element = $this->parseParenthesizedIntersectionType($result, $openParen, $isTypeStart, $parseType);
|
||||||
|
// Forbid mixing (A&B)&C by forbidding `&` separator after a parenthesized intersection type.
|
||||||
|
$delimiter = [TokenKind::BarToken];
|
||||||
|
} else {
|
||||||
|
$element = $parseType($result);
|
||||||
|
}
|
||||||
|
$result->addElement($element);
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$delimiterToken = $this->eatOptional($delimiter);
|
||||||
|
if ($delimiterToken !== null) {
|
||||||
|
$result->addElement($delimiterToken);
|
||||||
|
$delimiter = [$delimiterToken->kind];
|
||||||
|
}
|
||||||
|
$token = $this->getCurrentToken();
|
||||||
|
} while ($delimiterToken !== null);
|
||||||
|
|
||||||
|
$result->parent = $parentNode;
|
||||||
|
if ($result->children === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (in_array(end($result->children)->kind ?? null, $delimiter, true)) {
|
||||||
|
// Add a MissingToken so that this will warn about `function () : T| {}`
|
||||||
|
$result->children[] = new MissingToken($expectedTypeKind, $this->token->fullStart);
|
||||||
|
} elseif (count($result->children) === 1 && $result->children[0] instanceof ParenthesizedIntersectionType) {
|
||||||
|
// dnf types with parenthesized intersection types are a union type of at least 2 types.
|
||||||
|
$result->children[] = new MissingToken(TokenKind::BarToken, $this->token->fullStart);
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Node $parentNode
|
||||||
|
* @param Token $openParen
|
||||||
|
* @param Closure(Token):bool $isTypeStart
|
||||||
|
* @param Closure(Node):(Node|Token|null) $parseType
|
||||||
|
*/
|
||||||
|
private function parseParenthesizedIntersectionType($parentNode, Token $openParen, Closure $isTypeStart, Closure $parseType): ParenthesizedIntersectionType {
|
||||||
|
$node = new ParenthesizedIntersectionType();
|
||||||
|
$node->parent = $parentNode;
|
||||||
|
$node->openParen = $openParen;
|
||||||
|
$node->children = $this->parseDelimitedList(
|
||||||
|
DelimitedList\QualifiedNameList::class,
|
||||||
|
TokenKind::AmpersandToken,
|
||||||
|
$isTypeStart,
|
||||||
|
$parseType,
|
||||||
|
$node,
|
||||||
|
true);
|
||||||
|
if ($node->children) {
|
||||||
|
// https://wiki.php.net/rfc/dnf_types
|
||||||
|
if ((end($node->children->children)->kind ?? null) === TokenKind::OpenParenToken) {
|
||||||
|
// Add a MissingToken so that this will Warn about `function (A|(B&) $x) {}`
|
||||||
|
$node->children->children[] = new MissingToken(TokenKind::Name, $this->token->fullStart);
|
||||||
|
} elseif (count($node->children->children) === 1) {
|
||||||
|
// Must have at least 2 parts for A|(B&C)
|
||||||
|
$node->children->children[] = new MissingToken(TokenKind::AmpersandToken, $this->token->fullStart);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Having less than 2 types (no types) in A|() is a parse error
|
||||||
|
$node->children = new MissingToken(TokenKind::Name, $this->token->fullStart);
|
||||||
|
}
|
||||||
|
$node->closeParen = $this->eat(TokenKind::CloseParenToken);
|
||||||
|
return $node;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Node|null $parentNode
|
||||||
* @return DelimitedList\QualifiedNameList|null
|
* @return DelimitedList\QualifiedNameList|null
|
||||||
*/
|
*/
|
||||||
private function tryParseParameterTypeDeclarationList($parentNode) {
|
private function tryParseParameterTypeDeclarationList($parentNode) {
|
||||||
$result = $this->parseDelimitedList(
|
return $this->parseUnionTypeDeclarationList(
|
||||||
DelimitedList\QualifiedNameList::class,
|
$parentNode,
|
||||||
self::TYPE_DELIMITER_TOKENS,
|
|
||||||
function ($token) {
|
function ($token) {
|
||||||
return \in_array($token->kind, $this->parameterTypeDeclarationTokens, true) || $this->isQualifiedNameStart($token);
|
return \in_array($token->kind, $this->parameterTypeDeclarationTokens, true) ||
|
||||||
|
$this->isQualifiedNameStart($token);
|
||||||
},
|
},
|
||||||
function ($parentNode) {
|
function ($parentNode) {
|
||||||
return $this->tryParseParameterTypeDeclaration($parentNode);
|
return $this->tryParseParameterTypeDeclaration($parentNode);
|
||||||
},
|
},
|
||||||
$parentNode,
|
TokenKind::Name
|
||||||
true);
|
);
|
||||||
|
|
||||||
// Add a MissingToken so that this will Warn about `function (T| $x) {}`
|
|
||||||
// TODO: Make this a reusable abstraction?
|
|
||||||
if ($result && in_array(end($result->children)->kind ?? null, self::TYPE_DELIMITER_TOKENS)) {
|
|
||||||
$result->children[] = new MissingToken(TokenKind::Name, $this->token->fullStart);
|
|
||||||
}
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function parseCompoundStatement($parentNode) {
|
private function parseCompoundStatement($parentNode) {
|
||||||
@@ -950,12 +1044,6 @@ class Parser {
|
|||||||
return $compoundStatement;
|
return $compoundStatement;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function array_push_list(& $array, $list) {
|
|
||||||
foreach ($list as $item) {
|
|
||||||
$array[] = $item;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private function isClassMemberDeclarationStart(Token $token) {
|
private function isClassMemberDeclarationStart(Token $token) {
|
||||||
switch ($token->kind) {
|
switch ($token->kind) {
|
||||||
// const-modifier
|
// const-modifier
|
||||||
@@ -1036,6 +1124,7 @@ class Parser {
|
|||||||
case TokenKind::ClassKeyword:
|
case TokenKind::ClassKeyword:
|
||||||
case TokenKind::AbstractKeyword:
|
case TokenKind::AbstractKeyword:
|
||||||
case TokenKind::FinalKeyword:
|
case TokenKind::FinalKeyword:
|
||||||
|
case TokenKind::ReadonlyKeyword:
|
||||||
|
|
||||||
// interface-declaration
|
// interface-declaration
|
||||||
case TokenKind::InterfaceKeyword:
|
case TokenKind::InterfaceKeyword:
|
||||||
@@ -1062,6 +1151,9 @@ class Parser {
|
|||||||
|
|
||||||
// attributes
|
// attributes
|
||||||
case TokenKind::AttributeToken:
|
case TokenKind::AttributeToken:
|
||||||
|
|
||||||
|
// __halt_compiler
|
||||||
|
case TokenKind::HaltCompilerKeyword:
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -1324,8 +1416,6 @@ class Parser {
|
|||||||
case TokenKind::DollarOpenBraceToken:
|
case TokenKind::DollarOpenBraceToken:
|
||||||
case TokenKind::OpenBraceDollarToken:
|
case TokenKind::OpenBraceDollarToken:
|
||||||
$expression->children[] = $this->eat(TokenKind::DollarOpenBraceToken, TokenKind::OpenBraceDollarToken);
|
$expression->children[] = $this->eat(TokenKind::DollarOpenBraceToken, TokenKind::OpenBraceDollarToken);
|
||||||
// TODO: Reject ${var->prop} and ${(var->prop)} without rejecting ${var+otherVar}
|
|
||||||
// Currently, this fails to reject ${var->prop} (because `var` has TokenKind::Name instead of StringVarname)
|
|
||||||
if ($this->getCurrentToken()->kind === TokenKind::StringVarname) {
|
if ($this->getCurrentToken()->kind === TokenKind::StringVarname) {
|
||||||
$expression->children[] = $this->parseComplexDollarTemplateStringExpression($expression);
|
$expression->children[] = $this->parseComplexDollarTemplateStringExpression($expression);
|
||||||
} else {
|
} else {
|
||||||
@@ -1536,6 +1626,9 @@ class Parser {
|
|||||||
case TokenKind::ProtectedKeyword:
|
case TokenKind::ProtectedKeyword:
|
||||||
case TokenKind::PrivateKeyword:
|
case TokenKind::PrivateKeyword:
|
||||||
case TokenKind::AttributeToken:
|
case TokenKind::AttributeToken:
|
||||||
|
|
||||||
|
// dnf types (A&B)|C
|
||||||
|
case TokenKind::OpenParenToken:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1546,7 +1639,7 @@ class Parser {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $className (name of subclass of DelimitedList)
|
* @param string $className (name of subclass of DelimitedList)
|
||||||
* @param int $delimiter
|
* @param int|int[] $delimiter
|
||||||
* @param callable $isElementStartFn
|
* @param callable $isElementStartFn
|
||||||
* @param callable $parseElementFn
|
* @param callable $parseElementFn
|
||||||
* @param Node $parentNode
|
* @param Node $parentNode
|
||||||
@@ -1560,7 +1653,7 @@ class Parser {
|
|||||||
do {
|
do {
|
||||||
if ($isElementStartFn($token)) {
|
if ($isElementStartFn($token)) {
|
||||||
$node->addElement($parseElementFn($node));
|
$node->addElement($parseElementFn($node));
|
||||||
} elseif (!$allowEmptyElements || ($allowEmptyElements && !$this->checkToken($delimiter))) {
|
} elseif (!$allowEmptyElements || ($allowEmptyElements && !$this->checkAnyToken($delimiter))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1572,7 +1665,6 @@ class Parser {
|
|||||||
// TODO ERROR CASE - no delimiter, but a param follows
|
// TODO ERROR CASE - no delimiter, but a param follows
|
||||||
} while ($delimiterToken !== null);
|
} while ($delimiterToken !== null);
|
||||||
|
|
||||||
|
|
||||||
$node->parent = $parentNode;
|
$node->parent = $parentNode;
|
||||||
if ($node->children === null) {
|
if ($node->children === null) {
|
||||||
return null;
|
return null;
|
||||||
@@ -1772,10 +1864,17 @@ class Parser {
|
|||||||
return $succeeded;
|
return $succeeded;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @param int $expectedKind */
|
||||||
private function checkToken($expectedKind) : bool {
|
private function checkToken($expectedKind) : bool {
|
||||||
return $this->getCurrentToken()->kind === $expectedKind;
|
return $this->getCurrentToken()->kind === $expectedKind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @param int|int[] $expectedKind */
|
||||||
|
private function checkAnyToken($expectedKind) : bool {
|
||||||
|
$kind = $this->getCurrentToken()->kind;
|
||||||
|
return \is_array($expectedKind) ? \in_array($kind, $expectedKind, true) : $kind === $expectedKind;
|
||||||
|
}
|
||||||
|
|
||||||
private function parseIfStatement($parentNode) {
|
private function parseIfStatement($parentNode) {
|
||||||
$ifStatement = new IfStatementNode();
|
$ifStatement = new IfStatementNode();
|
||||||
$ifStatement->parent = $parentNode;
|
$ifStatement->parent = $parentNode;
|
||||||
@@ -2114,7 +2213,7 @@ class Parser {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TokenKind::QuestionToken:
|
case TokenKind::QuestionToken:
|
||||||
if ($parentNode instanceof TernaryExpression) {
|
if ($parentNode instanceof TernaryExpression && !isset($parentNode->questionToken)) {
|
||||||
// Workaround to parse "a ? b : c ? d : e" as "(a ? b : c) ? d : e"
|
// Workaround to parse "a ? b : c ? d : e" as "(a ? b : c) ? d : e"
|
||||||
break 2;
|
break 2;
|
||||||
}
|
}
|
||||||
@@ -2122,6 +2221,7 @@ class Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($shouldOperatorTakePrecedenceOverUnary) {
|
if ($shouldOperatorTakePrecedenceOverUnary) {
|
||||||
|
/** @var UnaryOpExpression $unaryExpression */
|
||||||
$unaryExpression = $leftOperand;
|
$unaryExpression = $leftOperand;
|
||||||
$leftOperand = $unaryExpression->operand;
|
$leftOperand = $unaryExpression->operand;
|
||||||
}
|
}
|
||||||
@@ -2143,6 +2243,7 @@ class Parser {
|
|||||||
|
|
||||||
// Rebuild the unary expression if we deconstructed it earlier.
|
// Rebuild the unary expression if we deconstructed it earlier.
|
||||||
if ($shouldOperatorTakePrecedenceOverUnary) {
|
if ($shouldOperatorTakePrecedenceOverUnary) {
|
||||||
|
/** @var UnaryOpExpression $unaryExpression */
|
||||||
$leftOperand->parent = $unaryExpression;
|
$leftOperand->parent = $unaryExpression;
|
||||||
$unaryExpression->operand = $leftOperand;
|
$unaryExpression->operand = $leftOperand;
|
||||||
$leftOperand = $unaryExpression;
|
$leftOperand = $unaryExpression;
|
||||||
@@ -2269,6 +2370,14 @@ class Parser {
|
|||||||
// InstanceOf has other remaining issues, but this heuristic is an improvement for many common cases such as `$x && $y = $z`
|
// InstanceOf has other remaining issues, but this heuristic is an improvement for many common cases such as `$x && $y = $z`
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Token|Node $leftOperand
|
||||||
|
* @param Token $operatorToken
|
||||||
|
* @param Token|null $byRefToken
|
||||||
|
* @param Token|Node $rightOperand
|
||||||
|
* @param Node $parentNode
|
||||||
|
* @return BinaryExpression|AssignmentExpression
|
||||||
|
*/
|
||||||
private function makeBinaryExpression($leftOperand, $operatorToken, $byRefToken, $rightOperand, $parentNode) {
|
private function makeBinaryExpression($leftOperand, $operatorToken, $byRefToken, $rightOperand, $parentNode) {
|
||||||
$assignmentExpression = $operatorToken->kind === TokenKind::EqualsToken;
|
$assignmentExpression = $operatorToken->kind === TokenKind::EqualsToken;
|
||||||
if ($assignmentExpression || \array_key_exists($operatorToken->kind, self::KNOWN_ASSIGNMENT_TOKEN_SET)) {
|
if ($assignmentExpression || \array_key_exists($operatorToken->kind, self::KNOWN_ASSIGNMENT_TOKEN_SET)) {
|
||||||
@@ -2283,8 +2392,12 @@ class Parser {
|
|||||||
}
|
}
|
||||||
$binaryExpression = $assignmentExpression ? new AssignmentExpression() : new BinaryExpression();
|
$binaryExpression = $assignmentExpression ? new AssignmentExpression() : new BinaryExpression();
|
||||||
$binaryExpression->parent = $parentNode;
|
$binaryExpression->parent = $parentNode;
|
||||||
$leftOperand->parent = $binaryExpression;
|
if ($leftOperand instanceof Node) {
|
||||||
$rightOperand->parent = $binaryExpression;
|
$leftOperand->parent = $binaryExpression;
|
||||||
|
}
|
||||||
|
if ($rightOperand instanceof Node) {
|
||||||
|
$rightOperand->parent = $binaryExpression;
|
||||||
|
}
|
||||||
$binaryExpression->leftOperand = $leftOperand;
|
$binaryExpression->leftOperand = $leftOperand;
|
||||||
$binaryExpression->operator = $operatorToken;
|
$binaryExpression->operator = $operatorToken;
|
||||||
if ($binaryExpression instanceof AssignmentExpression && isset($byRefToken)) {
|
if ($binaryExpression instanceof AssignmentExpression && isset($byRefToken)) {
|
||||||
@@ -2744,6 +2857,30 @@ class Parser {
|
|||||||
return $unsetStatement;
|
return $unsetStatement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function parseHaltCompilerStatement($parentNode) {
|
||||||
|
$haltCompilerStatement = new HaltCompilerStatement();
|
||||||
|
$haltCompilerStatement->parent = $parentNode;
|
||||||
|
|
||||||
|
$haltCompilerStatement->haltCompilerKeyword = $this->eat1(TokenKind::HaltCompilerKeyword);
|
||||||
|
$haltCompilerStatement->openParen = $this->eat1(TokenKind::OpenParenToken);
|
||||||
|
$haltCompilerStatement->closeParen = $this->eat1(TokenKind::CloseParenToken);
|
||||||
|
// There is an implicit ';' before the closing php tag.
|
||||||
|
$haltCompilerStatement->semicolonOrCloseTag = $this->eat(TokenKind::SemicolonToken, TokenKind::ScriptSectionEndTag);
|
||||||
|
// token_get_all() will return up to 3 tokens after __halt_compiler regardless of whether they're the right ones.
|
||||||
|
// For invalid php snippets, combine the remaining tokens into InlineHtml
|
||||||
|
$remainingTokens = [];
|
||||||
|
while ($this->token->kind !== TokenKind::EndOfFileToken) {
|
||||||
|
$remainingTokens[] = $this->token;
|
||||||
|
$this->advanceToken();
|
||||||
|
}
|
||||||
|
if ($remainingTokens) {
|
||||||
|
$firstToken = $remainingTokens[0];
|
||||||
|
$lastToken = end($remainingTokens);
|
||||||
|
$haltCompilerStatement->data = new Token(TokenKind::InlineHtml, $firstToken->fullStart, $firstToken->fullStart, $lastToken->fullStart + $lastToken->length - $firstToken->fullStart);
|
||||||
|
}
|
||||||
|
return $haltCompilerStatement;
|
||||||
|
}
|
||||||
|
|
||||||
private function parseArrayCreationExpression($parentNode) {
|
private function parseArrayCreationExpression($parentNode) {
|
||||||
$arrayExpression = new ArrayCreationExpression();
|
$arrayExpression = new ArrayCreationExpression();
|
||||||
$arrayExpression->parent = $parentNode;
|
$arrayExpression->parent = $parentNode;
|
||||||
@@ -3207,7 +3344,7 @@ class Parser {
|
|||||||
if ($classBaseClause->extendsKeyword === null) {
|
if ($classBaseClause->extendsKeyword === null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$classBaseClause->baseClass = $this->parseQualifiedName($classBaseClause);
|
$classBaseClause->baseClass = $this->parseQualifiedName($classBaseClause) ?? new MissingToken(TokenKind::QualifiedName, $this->token->fullStart);
|
||||||
|
|
||||||
return $classBaseClause;
|
return $classBaseClause;
|
||||||
}
|
}
|
||||||
@@ -3278,6 +3415,8 @@ class Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Parse a comma separated qualified name list (e.g. interfaces implemented by a class)
|
||||||
|
*
|
||||||
* @param Node $parentNode
|
* @param Node $parentNode
|
||||||
* @return DelimitedList\QualifiedNameList
|
* @return DelimitedList\QualifiedNameList
|
||||||
*/
|
*/
|
||||||
@@ -3291,6 +3430,7 @@ class Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function parseQualifiedNameCatchList($parentNode) {
|
private function parseQualifiedNameCatchList($parentNode) {
|
||||||
|
// catch blocks don't support intersection types.
|
||||||
$result = $this->parseDelimitedList(
|
$result = $this->parseDelimitedList(
|
||||||
DelimitedList\QualifiedNameList::class,
|
DelimitedList\QualifiedNameList::class,
|
||||||
TokenKind::BarToken,
|
TokenKind::BarToken,
|
||||||
@@ -3397,12 +3537,18 @@ class Parser {
|
|||||||
$namespaceDefinition->namespaceKeyword = $this->eat1(TokenKind::NamespaceKeyword);
|
$namespaceDefinition->namespaceKeyword = $this->eat1(TokenKind::NamespaceKeyword);
|
||||||
|
|
||||||
if (!$this->checkToken(TokenKind::NamespaceKeyword)) {
|
if (!$this->checkToken(TokenKind::NamespaceKeyword)) {
|
||||||
$namespaceDefinition->name = $this->parseQualifiedName($namespaceDefinition); // TODO only optional with compound statement block
|
$namespaceDefinition->name = $this->parseQualifiedName($namespaceDefinition);
|
||||||
}
|
}
|
||||||
|
|
||||||
$namespaceDefinition->compoundStatementOrSemicolon =
|
if ($this->checkToken(TokenKind::OpenBraceToken)) {
|
||||||
$this->checkToken(TokenKind::OpenBraceToken) ?
|
$namespaceDefinition->compoundStatementOrSemicolon = $this->parseCompoundStatement($namespaceDefinition);
|
||||||
$this->parseCompoundStatement($namespaceDefinition) : $this->eatSemicolonOrAbortStatement();
|
} else {
|
||||||
|
if (!$namespaceDefinition->name) {
|
||||||
|
// only optional with compound statement block
|
||||||
|
$namespaceDefinition->name = new MissingToken(TokenKind::QualifiedName, $this->token->fullStart);
|
||||||
|
}
|
||||||
|
$namespaceDefinition->compoundStatementOrSemicolon = $this->eatSemicolonOrAbortStatement();
|
||||||
|
}
|
||||||
|
|
||||||
return $namespaceDefinition;
|
return $namespaceDefinition;
|
||||||
}
|
}
|
||||||
@@ -3428,13 +3574,17 @@ class Parser {
|
|||||||
$namespaceUseClause = new NamespaceUseClause();
|
$namespaceUseClause = new NamespaceUseClause();
|
||||||
$namespaceUseClause->parent = $parentNode;
|
$namespaceUseClause->parent = $parentNode;
|
||||||
$namespaceUseClause->namespaceName = $this->parseQualifiedName($namespaceUseClause);
|
$namespaceUseClause->namespaceName = $this->parseQualifiedName($namespaceUseClause);
|
||||||
if ($this->checkToken(TokenKind::AsKeyword)) {
|
if ($this->checkToken(TokenKind::OpenBraceToken)) {
|
||||||
$namespaceUseClause->namespaceAliasingClause = $this->parseNamespaceAliasingClause($namespaceUseClause);
|
|
||||||
}
|
|
||||||
elseif ($this->checkToken(TokenKind::OpenBraceToken)) {
|
|
||||||
$namespaceUseClause->openBrace = $this->eat1(TokenKind::OpenBraceToken);
|
$namespaceUseClause->openBrace = $this->eat1(TokenKind::OpenBraceToken);
|
||||||
$namespaceUseClause->groupClauses = $this->parseNamespaceUseGroupClauseList($namespaceUseClause);
|
$namespaceUseClause->groupClauses = $this->parseNamespaceUseGroupClauseList($namespaceUseClause);
|
||||||
$namespaceUseClause->closeBrace = $this->eat1(TokenKind::CloseBraceToken);
|
$namespaceUseClause->closeBrace = $this->eat1(TokenKind::CloseBraceToken);
|
||||||
|
} else {
|
||||||
|
if (!$namespaceUseClause->namespaceName) {
|
||||||
|
$namespaceUseClause->namespaceName = new MissingToken(TokenKind::QualifiedName, $this->token->fullStart);
|
||||||
|
}
|
||||||
|
if ($this->checkToken(TokenKind::AsKeyword)) {
|
||||||
|
$namespaceUseClause->namespaceAliasingClause = $this->parseNamespaceAliasingClause($namespaceUseClause);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $namespaceUseClause;
|
return $namespaceUseClause;
|
||||||
@@ -3455,7 +3605,7 @@ class Parser {
|
|||||||
$namespaceUseGroupClause->parent = $parentNode;
|
$namespaceUseGroupClause->parent = $parentNode;
|
||||||
|
|
||||||
$namespaceUseGroupClause->functionOrConst = $this->eatOptional(TokenKind::FunctionKeyword, TokenKind::ConstKeyword);
|
$namespaceUseGroupClause->functionOrConst = $this->eatOptional(TokenKind::FunctionKeyword, TokenKind::ConstKeyword);
|
||||||
$namespaceUseGroupClause->namespaceName = $this->parseQualifiedName($namespaceUseGroupClause);
|
$namespaceUseGroupClause->namespaceName = $this->parseQualifiedName($namespaceUseGroupClause) ?? new MissingToken(TokenKind::QualifiedName, $this->token->fullStart);
|
||||||
if ($this->checkToken(TokenKind::AsKeyword)) {
|
if ($this->checkToken(TokenKind::AsKeyword)) {
|
||||||
$namespaceUseGroupClause->namespaceAliasingClause = $this->parseNamespaceAliasingClause($namespaceUseGroupClause);
|
$namespaceUseGroupClause->namespaceAliasingClause = $this->parseNamespaceAliasingClause($namespaceUseGroupClause);
|
||||||
}
|
}
|
||||||
@@ -3513,6 +3663,7 @@ class Parser {
|
|||||||
case TokenKind::AbstractKeyword:
|
case TokenKind::AbstractKeyword:
|
||||||
case TokenKind::FinalKeyword:
|
case TokenKind::FinalKeyword:
|
||||||
case TokenKind::ReadonlyKeyword:
|
case TokenKind::ReadonlyKeyword:
|
||||||
|
case TokenKind::ConstKeyword:
|
||||||
|
|
||||||
// method-declaration
|
// method-declaration
|
||||||
case TokenKind::FunctionKeyword:
|
case TokenKind::FunctionKeyword:
|
||||||
@@ -3533,6 +3684,9 @@ class Parser {
|
|||||||
|
|
||||||
$token = $this->getCurrentToken();
|
$token = $this->getCurrentToken();
|
||||||
switch ($token->kind) {
|
switch ($token->kind) {
|
||||||
|
case TokenKind::ConstKeyword:
|
||||||
|
return $this->parseClassConstDeclaration($parentNode, $modifiers);
|
||||||
|
|
||||||
case TokenKind::FunctionKeyword:
|
case TokenKind::FunctionKeyword:
|
||||||
return $this->parseMethodDeclaration($parentNode, $modifiers);
|
return $this->parseMethodDeclaration($parentNode, $modifiers);
|
||||||
|
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ class PhpTokenizer implements TokenStreamProviderInterface {
|
|||||||
T_DIR => TokenKind::Name,
|
T_DIR => TokenKind::Name,
|
||||||
T_FILE => TokenKind::Name,
|
T_FILE => TokenKind::Name,
|
||||||
T_FUNC_C => TokenKind::Name,
|
T_FUNC_C => TokenKind::Name,
|
||||||
T_HALT_COMPILER => TokenKind::Name,
|
|
||||||
T_METHOD_C => TokenKind::Name,
|
T_METHOD_C => TokenKind::Name,
|
||||||
T_NS_C => TokenKind::Name,
|
T_NS_C => TokenKind::Name,
|
||||||
T_TRAIT_C => TokenKind::Name,
|
T_TRAIT_C => TokenKind::Name,
|
||||||
@@ -274,6 +273,7 @@ class PhpTokenizer implements TokenStreamProviderInterface {
|
|||||||
T_FUNCTION => TokenKind::FunctionKeyword,
|
T_FUNCTION => TokenKind::FunctionKeyword,
|
||||||
T_GLOBAL => TokenKind::GlobalKeyword,
|
T_GLOBAL => TokenKind::GlobalKeyword,
|
||||||
T_GOTO => TokenKind::GotoKeyword,
|
T_GOTO => TokenKind::GotoKeyword,
|
||||||
|
T_HALT_COMPILER => TokenKind::HaltCompilerKeyword,
|
||||||
T_IF => TokenKind::IfKeyword,
|
T_IF => TokenKind::IfKeyword,
|
||||||
T_IMPLEMENTS => TokenKind::ImplementsKeyword,
|
T_IMPLEMENTS => TokenKind::ImplementsKeyword,
|
||||||
T_INCLUDE => TokenKind::IncludeKeyword,
|
T_INCLUDE => TokenKind::IncludeKeyword,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class Token implements \JsonSerializable {
|
|||||||
public $fullStart;
|
public $fullStart;
|
||||||
/** @var int */
|
/** @var int */
|
||||||
public $start;
|
public $start;
|
||||||
/** @var int */
|
/** @var int the length is equal to $this->getEndPosition() - $this->fullStart. */
|
||||||
public $length;
|
public $length;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ class TokenKind {
|
|||||||
const IterableKeyword = self::IterableReservedWord;
|
const IterableKeyword = self::IterableReservedWord;
|
||||||
const EnumKeyword = 171;
|
const EnumKeyword = 171;
|
||||||
const ReadonlyKeyword = 172;
|
const ReadonlyKeyword = 172;
|
||||||
|
const HaltCompilerKeyword = 173;
|
||||||
|
|
||||||
const OpenBracketToken = 201;
|
const OpenBracketToken = 201;
|
||||||
const CloseBracketToken = 202;
|
const CloseBracketToken = 202;
|
||||||
@@ -175,6 +176,7 @@ class TokenKind {
|
|||||||
const NullReservedWord = 322;
|
const NullReservedWord = 322;
|
||||||
const MixedReservedWord = 340;
|
const MixedReservedWord = 340;
|
||||||
const IterableReservedWord = 170;
|
const IterableReservedWord = 170;
|
||||||
|
const NeverReservedWord = 341;
|
||||||
|
|
||||||
const ScriptSectionStartTag = 323;
|
const ScriptSectionStartTag = 323;
|
||||||
const ScriptSectionEndTag = 324;
|
const ScriptSectionEndTag = 324;
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ class TokenStringMaps {
|
|||||||
"interface" => TokenKind::InterfaceKeyword,
|
"interface" => TokenKind::InterfaceKeyword,
|
||||||
"isset" => TokenKind::IsSetKeyword,
|
"isset" => TokenKind::IsSetKeyword,
|
||||||
"list" => TokenKind::ListKeyword,
|
"list" => TokenKind::ListKeyword,
|
||||||
|
"match" => TokenKind::MatchKeyword,
|
||||||
"namespace" => TokenKind::NamespaceKeyword,
|
"namespace" => TokenKind::NamespaceKeyword,
|
||||||
"new" => TokenKind::NewKeyword,
|
"new" => TokenKind::NewKeyword,
|
||||||
"or" => TokenKind::OrKeyword,
|
"or" => TokenKind::OrKeyword,
|
||||||
@@ -108,6 +109,7 @@ class TokenStringMaps {
|
|||||||
"void" => TokenKind::VoidReservedWord,
|
"void" => TokenKind::VoidReservedWord,
|
||||||
"iterable" => TokenKind::IterableReservedWord,
|
"iterable" => TokenKind::IterableReservedWord,
|
||||||
"mixed" => TokenKind::MixedReservedWord,
|
"mixed" => TokenKind::MixedReservedWord,
|
||||||
|
"never" => TokenKind::NeverReservedWord,
|
||||||
];
|
];
|
||||||
|
|
||||||
const OPERATORS_AND_PUNCTUATORS = [
|
const OPERATORS_AND_PUNCTUATORS = [
|
||||||
|
|||||||
35
vendor/myclabs/deep-copy/README.md
vendored
35
vendor/myclabs/deep-copy/README.md
vendored
@@ -186,6 +186,9 @@ $matcher = new TypeMatcher('Doctrine\Common\Collections\Collection');
|
|||||||
- `DeepCopy\Filter` applies a transformation to the object attribute matched by `DeepCopy\Matcher`
|
- `DeepCopy\Filter` applies a transformation to the object attribute matched by `DeepCopy\Matcher`
|
||||||
- `DeepCopy\TypeFilter` applies a transformation to any element matched by `DeepCopy\TypeMatcher`
|
- `DeepCopy\TypeFilter` applies a transformation to any element matched by `DeepCopy\TypeMatcher`
|
||||||
|
|
||||||
|
By design, matching a filter will stop the chain of filters (i.e. the next ones will not be applied).
|
||||||
|
Using the ([`ChainableFilter`](#chainablefilter-filter)) won't stop the chain of filters.
|
||||||
|
|
||||||
|
|
||||||
#### `SetNullFilter` (filter)
|
#### `SetNullFilter` (filter)
|
||||||
|
|
||||||
@@ -226,6 +229,34 @@ $copy = $copier->copy($object);
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### `ChainableFilter` (filter)
|
||||||
|
|
||||||
|
If you use cloning on proxy classes, you might want to apply two filters for:
|
||||||
|
1. loading the data
|
||||||
|
2. applying a transformation
|
||||||
|
|
||||||
|
You can use the `ChainableFilter` as a decorator of the proxy loader filter, which won't stop the chain of filters (i.e.
|
||||||
|
the next ones may be applied).
|
||||||
|
|
||||||
|
|
||||||
|
```php
|
||||||
|
use DeepCopy\DeepCopy;
|
||||||
|
use DeepCopy\Filter\ChainableFilter;
|
||||||
|
use DeepCopy\Filter\Doctrine\DoctrineProxyFilter;
|
||||||
|
use DeepCopy\Filter\SetNullFilter;
|
||||||
|
use DeepCopy\Matcher\Doctrine\DoctrineProxyMatcher;
|
||||||
|
use DeepCopy\Matcher\PropertyNameMatcher;
|
||||||
|
|
||||||
|
$copier = new DeepCopy();
|
||||||
|
$copier->addFilter(new ChainableFilter(new DoctrineProxyFilter()), new DoctrineProxyMatcher());
|
||||||
|
$copier->addFilter(new SetNullFilter(), new PropertyNameMatcher('id'));
|
||||||
|
|
||||||
|
$copy = $copier->copy($object);
|
||||||
|
|
||||||
|
echo $copy->id; // null
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
#### `DoctrineCollectionFilter` (filter)
|
#### `DoctrineCollectionFilter` (filter)
|
||||||
|
|
||||||
If you use Doctrine and want to copy an entity, you will need to use the `DoctrineCollectionFilter`:
|
If you use Doctrine and want to copy an entity, you will need to use the `DoctrineCollectionFilter`:
|
||||||
@@ -268,6 +299,8 @@ Doctrine proxy class (...\\\_\_CG\_\_\Proxy).
|
|||||||
You can use the `DoctrineProxyFilter` to load the actual entity behind the Doctrine proxy class.
|
You can use the `DoctrineProxyFilter` to load the actual entity behind the Doctrine proxy class.
|
||||||
**Make sure, though, to put this as one of your very first filters in the filter chain so that the entity is loaded
|
**Make sure, though, to put this as one of your very first filters in the filter chain so that the entity is loaded
|
||||||
before other filters are applied!**
|
before other filters are applied!**
|
||||||
|
We recommend to decorate the `DoctrineProxyFilter` with the `ChainableFilter` to allow applying other filters to the
|
||||||
|
cloned lazy loaded entities.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use DeepCopy\DeepCopy;
|
use DeepCopy\DeepCopy;
|
||||||
@@ -275,7 +308,7 @@ use DeepCopy\Filter\Doctrine\DoctrineProxyFilter;
|
|||||||
use DeepCopy\Matcher\Doctrine\DoctrineProxyMatcher;
|
use DeepCopy\Matcher\Doctrine\DoctrineProxyMatcher;
|
||||||
|
|
||||||
$copier = new DeepCopy();
|
$copier = new DeepCopy();
|
||||||
$copier->addFilter(new DoctrineProxyFilter(), new DoctrineProxyMatcher());
|
$copier->addFilter(new ChainableFilter(new DoctrineProxyFilter()), new DoctrineProxyMatcher());
|
||||||
|
|
||||||
$copy = $copier->copy($object);
|
$copy = $copier->copy($object);
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ use DateInterval;
|
|||||||
use DateTimeInterface;
|
use DateTimeInterface;
|
||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
use DeepCopy\Exception\CloneException;
|
use DeepCopy\Exception\CloneException;
|
||||||
|
use DeepCopy\Filter\ChainableFilter;
|
||||||
use DeepCopy\Filter\Filter;
|
use DeepCopy\Filter\Filter;
|
||||||
use DeepCopy\Matcher\Matcher;
|
use DeepCopy\Matcher\Matcher;
|
||||||
use DeepCopy\Reflection\ReflectionHelper;
|
use DeepCopy\Reflection\ReflectionHelper;
|
||||||
@@ -239,6 +240,10 @@ class DeepCopy
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($filter instanceof ChainableFilter) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// If a filter matches, we stop processing this property
|
// If a filter matches, we stop processing this property
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
24
vendor/myclabs/deep-copy/src/DeepCopy/Filter/ChainableFilter.php
vendored
Normal file
24
vendor/myclabs/deep-copy/src/DeepCopy/Filter/ChainableFilter.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace DeepCopy\Filter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines a decorator filter that will not stop the chain of filters.
|
||||||
|
*/
|
||||||
|
class ChainableFilter implements Filter
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var Filter
|
||||||
|
*/
|
||||||
|
protected $filter;
|
||||||
|
|
||||||
|
public function __construct(Filter $filter)
|
||||||
|
{
|
||||||
|
$this->filter = $filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function apply($object, $property, $objectCopier)
|
||||||
|
{
|
||||||
|
$this->filter->apply($object, $property, $objectCopier);
|
||||||
|
}
|
||||||
|
}
|
||||||
6
vendor/nikic/php-parser/grammar/php7.y
vendored
6
vendor/nikic/php-parser/grammar/php7.y
vendored
@@ -518,7 +518,8 @@ new_elseif_list:
|
|||||||
;
|
;
|
||||||
|
|
||||||
new_elseif:
|
new_elseif:
|
||||||
T_ELSEIF '(' expr ')' ':' inner_statement_list { $$ = Stmt\ElseIf_[$3, $6]; }
|
T_ELSEIF '(' expr ')' ':' inner_statement_list
|
||||||
|
{ $$ = Stmt\ElseIf_[$3, $6]; $this->fixupAlternativeElse($$); }
|
||||||
;
|
;
|
||||||
|
|
||||||
else_single:
|
else_single:
|
||||||
@@ -528,7 +529,8 @@ else_single:
|
|||||||
|
|
||||||
new_else_single:
|
new_else_single:
|
||||||
/* empty */ { $$ = null; }
|
/* empty */ { $$ = null; }
|
||||||
| T_ELSE ':' inner_statement_list { $$ = Stmt\Else_[$3]; }
|
| T_ELSE ':' inner_statement_list
|
||||||
|
{ $$ = Stmt\Else_[$3]; $this->fixupAlternativeElse($$); }
|
||||||
;
|
;
|
||||||
|
|
||||||
foreach_variable:
|
foreach_variable:
|
||||||
|
|||||||
@@ -1826,7 +1826,7 @@ class Php7 extends \PhpParser\ParserAbstract
|
|||||||
$this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)];
|
$this->semStack[$stackPos-(2-1)][] = $this->semStack[$stackPos-(2-2)]; $this->semValue = $this->semStack[$stackPos-(2-1)];
|
||||||
},
|
},
|
||||||
266 => function ($stackPos) {
|
266 => function ($stackPos) {
|
||||||
$this->semValue = new Stmt\ElseIf_($this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-6)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes);
|
$this->semValue = new Stmt\ElseIf_($this->semStack[$stackPos-(6-3)], $this->semStack[$stackPos-(6-6)], $this->startAttributeStack[$stackPos-(6-1)] + $this->endAttributes); $this->fixupAlternativeElse($this->semValue);
|
||||||
},
|
},
|
||||||
267 => function ($stackPos) {
|
267 => function ($stackPos) {
|
||||||
$this->semValue = null;
|
$this->semValue = null;
|
||||||
@@ -1838,7 +1838,7 @@ class Php7 extends \PhpParser\ParserAbstract
|
|||||||
$this->semValue = null;
|
$this->semValue = null;
|
||||||
},
|
},
|
||||||
270 => function ($stackPos) {
|
270 => function ($stackPos) {
|
||||||
$this->semValue = new Stmt\Else_($this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes);
|
$this->semValue = new Stmt\Else_($this->semStack[$stackPos-(3-3)], $this->startAttributeStack[$stackPos-(3-1)] + $this->endAttributes); $this->fixupAlternativeElse($this->semValue);
|
||||||
},
|
},
|
||||||
271 => function ($stackPos) {
|
271 => function ($stackPos) {
|
||||||
$this->semValue = array($this->semStack[$stackPos-(1-1)], false);
|
$this->semValue = array($this->semStack[$stackPos-(1-1)], false);
|
||||||
|
|||||||
@@ -16,9 +16,12 @@ use PhpParser\Node\Scalar\String_;
|
|||||||
use PhpParser\Node\Stmt\Class_;
|
use PhpParser\Node\Stmt\Class_;
|
||||||
use PhpParser\Node\Stmt\ClassConst;
|
use PhpParser\Node\Stmt\ClassConst;
|
||||||
use PhpParser\Node\Stmt\ClassMethod;
|
use PhpParser\Node\Stmt\ClassMethod;
|
||||||
|
use PhpParser\Node\Stmt\Else_;
|
||||||
|
use PhpParser\Node\Stmt\ElseIf_;
|
||||||
use PhpParser\Node\Stmt\Enum_;
|
use PhpParser\Node\Stmt\Enum_;
|
||||||
use PhpParser\Node\Stmt\Interface_;
|
use PhpParser\Node\Stmt\Interface_;
|
||||||
use PhpParser\Node\Stmt\Namespace_;
|
use PhpParser\Node\Stmt\Namespace_;
|
||||||
|
use PhpParser\Node\Stmt\Nop;
|
||||||
use PhpParser\Node\Stmt\Property;
|
use PhpParser\Node\Stmt\Property;
|
||||||
use PhpParser\Node\Stmt\TryCatch;
|
use PhpParser\Node\Stmt\TryCatch;
|
||||||
use PhpParser\Node\Stmt\UseUse;
|
use PhpParser\Node\Stmt\UseUse;
|
||||||
@@ -876,6 +879,24 @@ abstract class ParserAbstract implements Parser
|
|||||||
return $attributes;
|
return $attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @param ElseIf_|Else_ $node */
|
||||||
|
protected function fixupAlternativeElse($node) {
|
||||||
|
// Make sure a trailing nop statement carrying comments is part of the node.
|
||||||
|
$numStmts = \count($node->stmts);
|
||||||
|
if ($numStmts !== 0 && $node->stmts[$numStmts - 1] instanceof Nop) {
|
||||||
|
$nopAttrs = $node->stmts[$numStmts - 1]->getAttributes();
|
||||||
|
if (isset($nopAttrs['endLine'])) {
|
||||||
|
$node->setAttribute('endLine', $nopAttrs['endLine']);
|
||||||
|
}
|
||||||
|
if (isset($nopAttrs['endFilePos'])) {
|
||||||
|
$node->setAttribute('endFilePos', $nopAttrs['endFilePos']);
|
||||||
|
}
|
||||||
|
if (isset($nopAttrs['endTokenPos'])) {
|
||||||
|
$node->setAttribute('endTokenPos', $nopAttrs['endTokenPos']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected function checkClassModifier($a, $b, $modifierPos) {
|
protected function checkClassModifier($a, $b, $modifierPos) {
|
||||||
try {
|
try {
|
||||||
Class_::verifyClassModifier($a, $b);
|
Class_::verifyClassModifier($a, $b);
|
||||||
|
|||||||
163
vendor/phan/phan/.phan/internal_stubs/zip.phan_php
vendored
Normal file
163
vendor/phan/phan/.phan/internal_stubs/zip.phan_php
vendored
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
<?php
|
||||||
|
// These stubs were generated by the phan stub generator.
|
||||||
|
// @phan-stub-for-extension zip@1.15.6
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
class ZipArchive implements \Countable {
|
||||||
|
|
||||||
|
// constants
|
||||||
|
const CREATE = 1;
|
||||||
|
const EXCL = 2;
|
||||||
|
const CHECKCONS = 4;
|
||||||
|
const OVERWRITE = 8;
|
||||||
|
const RDONLY = 16;
|
||||||
|
const FL_NOCASE = 1;
|
||||||
|
const FL_NODIR = 2;
|
||||||
|
const FL_COMPRESSED = 4;
|
||||||
|
const FL_UNCHANGED = 8;
|
||||||
|
const FL_ENC_GUESS = 0;
|
||||||
|
const FL_ENC_RAW = 64;
|
||||||
|
const FL_ENC_STRICT = 128;
|
||||||
|
const FL_ENC_UTF_8 = 2048;
|
||||||
|
const FL_ENC_CP437 = 4096;
|
||||||
|
const CM_DEFAULT = -1;
|
||||||
|
const CM_STORE = 0;
|
||||||
|
const CM_SHRINK = 1;
|
||||||
|
const CM_REDUCE_1 = 2;
|
||||||
|
const CM_REDUCE_2 = 3;
|
||||||
|
const CM_REDUCE_3 = 4;
|
||||||
|
const CM_REDUCE_4 = 5;
|
||||||
|
const CM_IMPLODE = 6;
|
||||||
|
const CM_DEFLATE = 8;
|
||||||
|
const CM_DEFLATE64 = 9;
|
||||||
|
const CM_PKWARE_IMPLODE = 10;
|
||||||
|
const CM_BZIP2 = 12;
|
||||||
|
const CM_LZMA = 14;
|
||||||
|
const CM_LZMA2 = 33;
|
||||||
|
const CM_XZ = 95;
|
||||||
|
const CM_TERSE = 18;
|
||||||
|
const CM_LZ77 = 19;
|
||||||
|
const CM_WAVPACK = 97;
|
||||||
|
const CM_PPMD = 98;
|
||||||
|
const ER_OK = 0;
|
||||||
|
const ER_MULTIDISK = 1;
|
||||||
|
const ER_RENAME = 2;
|
||||||
|
const ER_CLOSE = 3;
|
||||||
|
const ER_SEEK = 4;
|
||||||
|
const ER_READ = 5;
|
||||||
|
const ER_WRITE = 6;
|
||||||
|
const ER_CRC = 7;
|
||||||
|
const ER_ZIPCLOSED = 8;
|
||||||
|
const ER_NOENT = 9;
|
||||||
|
const ER_EXISTS = 10;
|
||||||
|
const ER_OPEN = 11;
|
||||||
|
const ER_TMPOPEN = 12;
|
||||||
|
const ER_ZLIB = 13;
|
||||||
|
const ER_MEMORY = 14;
|
||||||
|
const ER_CHANGED = 15;
|
||||||
|
const ER_COMPNOTSUPP = 16;
|
||||||
|
const ER_EOF = 17;
|
||||||
|
const ER_INVAL = 18;
|
||||||
|
const ER_NOZIP = 19;
|
||||||
|
const ER_INTERNAL = 20;
|
||||||
|
const ER_INCONS = 21;
|
||||||
|
const ER_REMOVE = 22;
|
||||||
|
const ER_DELETED = 23;
|
||||||
|
const ER_ENCRNOTSUPP = 24;
|
||||||
|
const ER_RDONLY = 25;
|
||||||
|
const ER_NOPASSWD = 26;
|
||||||
|
const ER_WRONGPASSWD = 27;
|
||||||
|
const ER_OPNOTSUPP = 28;
|
||||||
|
const ER_INUSE = 29;
|
||||||
|
const ER_TELL = 30;
|
||||||
|
const ER_COMPRESSED_DATA = 31;
|
||||||
|
const ER_CANCELLED = 32;
|
||||||
|
const OPSYS_DOS = 0;
|
||||||
|
const OPSYS_AMIGA = 1;
|
||||||
|
const OPSYS_OPENVMS = 2;
|
||||||
|
const OPSYS_UNIX = 3;
|
||||||
|
const OPSYS_VM_CMS = 4;
|
||||||
|
const OPSYS_ATARI_ST = 5;
|
||||||
|
const OPSYS_OS_2 = 6;
|
||||||
|
const OPSYS_MACINTOSH = 7;
|
||||||
|
const OPSYS_Z_SYSTEM = 8;
|
||||||
|
const OPSYS_Z_CPM = 9;
|
||||||
|
const OPSYS_CPM = 9;
|
||||||
|
const OPSYS_WINDOWS_NTFS = 10;
|
||||||
|
const OPSYS_MVS = 11;
|
||||||
|
const OPSYS_VSE = 12;
|
||||||
|
const OPSYS_ACORN_RISC = 13;
|
||||||
|
const OPSYS_VFAT = 14;
|
||||||
|
const OPSYS_ALTERNATE_MVS = 15;
|
||||||
|
const OPSYS_BEOS = 16;
|
||||||
|
const OPSYS_TANDEM = 17;
|
||||||
|
const OPSYS_OS_400 = 18;
|
||||||
|
const OPSYS_OS_X = 19;
|
||||||
|
const OPSYS_DEFAULT = 3;
|
||||||
|
const EM_NONE = 0;
|
||||||
|
const EM_AES_128 = 257;
|
||||||
|
const EM_AES_192 = 258;
|
||||||
|
const EM_AES_256 = 259;
|
||||||
|
const LIBZIP_VERSION = '1.9.2';
|
||||||
|
|
||||||
|
// properties
|
||||||
|
public $comment;
|
||||||
|
public $filename;
|
||||||
|
public $numFiles;
|
||||||
|
public $status;
|
||||||
|
public $statusSys;
|
||||||
|
|
||||||
|
// methods
|
||||||
|
public function open($filename, $flags = null) {}
|
||||||
|
public function setPassword($password) {}
|
||||||
|
public function close() {}
|
||||||
|
public function count() {}
|
||||||
|
public function getStatusString() {}
|
||||||
|
public function addEmptyDir($dirname) {}
|
||||||
|
public function addFromString($name, $content) {}
|
||||||
|
public function addFile($filepath, $entryname = null, $start = null, $length = null) {}
|
||||||
|
public function addGlob($pattern, $flags = null, $options = null) {}
|
||||||
|
public function addPattern($pattern, $path = null, $options = null) {}
|
||||||
|
public function renameIndex($index, $new_name) {}
|
||||||
|
public function renameName($name, $new_name) {}
|
||||||
|
public function setArchiveComment($comment) {}
|
||||||
|
public function getArchiveComment($flags = null) {}
|
||||||
|
public function setCommentIndex($index, $comment) {}
|
||||||
|
public function setCommentName($name, $comment) {}
|
||||||
|
public function getCommentIndex($index, $flags = null) {}
|
||||||
|
public function getCommentName($name, $flags = null) {}
|
||||||
|
public function deleteIndex($index) {}
|
||||||
|
public function deleteName($name) {}
|
||||||
|
public function statName($filename, $flags = null) {}
|
||||||
|
public function statIndex($index, $flags = null) {}
|
||||||
|
public function locateName($filename, $flags = null) {}
|
||||||
|
public function getNameIndex($index, $flags = null) {}
|
||||||
|
public function unchangeArchive() {}
|
||||||
|
public function unchangeAll() {}
|
||||||
|
public function unchangeIndex($index) {}
|
||||||
|
public function unchangeName($name) {}
|
||||||
|
public function extractTo($pathto, $files = null) {}
|
||||||
|
public function getFromName($entryname, $len = null, $flags = null) {}
|
||||||
|
public function getFromIndex($index, $len = null, $flags = null) {}
|
||||||
|
public function getStream($entryname) {}
|
||||||
|
public function setExternalAttributesName($name, $opsys, $attr, $flags = null) {}
|
||||||
|
public function setExternalAttributesIndex($index, $opsys, $attr, $flags = null) {}
|
||||||
|
public function getExternalAttributesName($name, &$opsys, &$attr, $flags = null) {}
|
||||||
|
public function getExternalAttributesIndex($index, &$opsys, &$attr, $flags = null) {}
|
||||||
|
public function setCompressionName($name, $method, $compflags = null) {}
|
||||||
|
public function setCompressionIndex($index, $method, $compflags = null) {}
|
||||||
|
public function setEncryptionName($name, $method, $password = null) {}
|
||||||
|
public function setEncryptionIndex($index, $method, $password = null) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
function zip_close($zip) {}
|
||||||
|
function zip_entry_close($zip_ent) {}
|
||||||
|
function zip_entry_compressedsize($zip_entry) {}
|
||||||
|
function zip_entry_compressionmethod($zip_entry) {}
|
||||||
|
function zip_entry_filesize($zip_entry) {}
|
||||||
|
function zip_entry_name($zip_entry) {}
|
||||||
|
function zip_entry_open($zip_dp, $zip_entry, $mode = null) {}
|
||||||
|
function zip_entry_read($zip_entry, $len = null) {}
|
||||||
|
function zip_open($filename) {}
|
||||||
|
function zip_read($zip) {}
|
||||||
|
}
|
||||||
@@ -114,7 +114,7 @@ final class EmptyStatementListVisitor extends PluginAwarePostAnalysisVisitor
|
|||||||
$this->code_base,
|
$this->code_base,
|
||||||
(clone $this->context)->withLineNumberStart($last_if_elem->children['stmts']->lineno ?? $last_if_elem->lineno),
|
(clone $this->context)->withLineNumberStart($last_if_elem->children['stmts']->lineno ?? $last_if_elem->lineno),
|
||||||
'PhanPluginEmptyStatementIf',
|
'PhanPluginEmptyStatementIf',
|
||||||
'Empty statement list statement detected for the last if/elseif statement',
|
'Empty statement list detected for the last if/elseif statement',
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -191,7 +191,7 @@ final class EmptyStatementListVisitor extends PluginAwarePostAnalysisVisitor
|
|||||||
$this->code_base,
|
$this->code_base,
|
||||||
(clone $this->context)->withLineNumberStart($stmts_node->lineno ?? $node->lineno),
|
(clone $this->context)->withLineNumberStart($stmts_node->lineno ?? $node->lineno),
|
||||||
'PhanPluginEmptyStatementForLoop',
|
'PhanPluginEmptyStatementForLoop',
|
||||||
'Empty statement list statement detected for the for loop',
|
'Empty statement list detected for the for loop',
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -219,7 +219,7 @@ final class EmptyStatementListVisitor extends PluginAwarePostAnalysisVisitor
|
|||||||
$this->code_base,
|
$this->code_base,
|
||||||
(clone $this->context)->withLineNumberStart($stmts_node->lineno ?? $node->lineno),
|
(clone $this->context)->withLineNumberStart($stmts_node->lineno ?? $node->lineno),
|
||||||
'PhanPluginEmptyStatementWhileLoop',
|
'PhanPluginEmptyStatementWhileLoop',
|
||||||
'Empty statement list statement detected for the while loop',
|
'Empty statement list detected for the while loop',
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -247,7 +247,7 @@ final class EmptyStatementListVisitor extends PluginAwarePostAnalysisVisitor
|
|||||||
$this->code_base,
|
$this->code_base,
|
||||||
(clone $this->context)->withLineNumberStart($stmts_node->lineno),
|
(clone $this->context)->withLineNumberStart($stmts_node->lineno),
|
||||||
'PhanPluginEmptyStatementDoWhileLoop',
|
'PhanPluginEmptyStatementDoWhileLoop',
|
||||||
'Empty statement list statement detected for the do-while loop',
|
'Empty statement list detected for the do-while loop',
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -276,7 +276,7 @@ final class EmptyStatementListVisitor extends PluginAwarePostAnalysisVisitor
|
|||||||
$this->code_base,
|
$this->code_base,
|
||||||
(clone $this->context)->withLineNumberStart($stmts_node->lineno),
|
(clone $this->context)->withLineNumberStart($stmts_node->lineno),
|
||||||
'PhanPluginEmptyStatementForeachLoop',
|
'PhanPluginEmptyStatementForeachLoop',
|
||||||
'Empty statement list statement detected for the foreach loop',
|
'Empty statement list detected for the foreach loop',
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -295,7 +295,7 @@ final class EmptyStatementListVisitor extends PluginAwarePostAnalysisVisitor
|
|||||||
$this->code_base,
|
$this->code_base,
|
||||||
(clone $this->context)->withLineNumberStart($try_node->lineno),
|
(clone $this->context)->withLineNumberStart($try_node->lineno),
|
||||||
'PhanPluginEmptyStatementTryBody',
|
'PhanPluginEmptyStatementTryBody',
|
||||||
'Empty statement list statement detected for the try statement\'s body',
|
'Empty statement list detected for the try statement\'s body',
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -315,7 +315,7 @@ final class EmptyStatementListVisitor extends PluginAwarePostAnalysisVisitor
|
|||||||
$this->code_base,
|
$this->code_base,
|
||||||
(clone $this->context)->withLineNumberStart($finally_node->lineno),
|
(clone $this->context)->withLineNumberStart($finally_node->lineno),
|
||||||
'PhanPluginEmptyStatementTryFinally',
|
'PhanPluginEmptyStatementTryFinally',
|
||||||
'Empty statement list statement detected for the try\'s finally body',
|
'Empty statement list detected for the try\'s finally body',
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
14
vendor/phan/phan/.phan/plugins/README.md
vendored
14
vendor/phan/phan/.phan/plugins/README.md
vendored
@@ -216,15 +216,15 @@ By default, this plugin won't warn if it can find a TODO/FIXME/"Deliberately emp
|
|||||||
(This may miss some TODOs due to `php-ast` not providing the end line numbers)
|
(This may miss some TODOs due to `php-ast` not providing the end line numbers)
|
||||||
The setting `'plugin_config' => ['empty_statement_list_ignore_todos' => true]` can be used to make it unconditionally warn about empty statement lists.
|
The setting `'plugin_config' => ['empty_statement_list_ignore_todos' => true]` can be used to make it unconditionally warn about empty statement lists.
|
||||||
|
|
||||||
- **PhanPluginEmptyStatementDoWhileLoop** `Empty statement list statement detected for the do-while loop`
|
- **PhanPluginEmptyStatementDoWhileLoop** `Empty statement list detected for the do-while loop`
|
||||||
- **PhanPluginEmptyStatementForLoop** `Empty statement list statement detected for the for loop`
|
- **PhanPluginEmptyStatementForLoop** `Empty statement list detected for the for loop`
|
||||||
- **PhanPluginEmptyStatementForeachLoop** `Empty statement list statement detected for the foreach loop`
|
- **PhanPluginEmptyStatementForeachLoop** `Empty statement list detected for the foreach loop`
|
||||||
- **PhanPluginEmptyStatementIf**: `Empty statement list statement detected for the last if/elseif statement`
|
- **PhanPluginEmptyStatementIf**: `Empty statement list detected for the last if/elseif statement`
|
||||||
- **PhanPluginEmptyStatementSwitch** `No side effects seen for any cases of this switch statement`
|
- **PhanPluginEmptyStatementSwitch** `No side effects seen for any cases of this switch statement`
|
||||||
- **PhanPluginEmptyStatementTryBody** `Empty statement list statement detected for the try statement's body`
|
- **PhanPluginEmptyStatementTryBody** `Empty statement list detected for the try statement's body`
|
||||||
- **PhanPluginEmptyStatementPossiblyNonThrowingTryBody**: `Found a try block that looks like it might not throw. Note that this check is a heuristic prone to false positives, especially because error handlers, signal handlers, destructors, and other things may all lead to throwing.`
|
- **PhanPluginEmptyStatementPossiblyNonThrowingTryBody**: `Found a try block that looks like it might not throw. Note that this check is a heuristic prone to false positives, especially because error handlers, signal handlers, destructors, and other things may all lead to throwing.`
|
||||||
- **PhanPluginEmptyStatementTryFinally** `Empty statement list statement detected for the try's finally body`
|
- **PhanPluginEmptyStatementTryFinally** `Empty statement list detected for the try's finally body`
|
||||||
- **PhanPluginEmptyStatementWhileLoop** `Empty statement list statement detected for the while loop`
|
- **PhanPluginEmptyStatementWhileLoop** `Empty statement list detected for the while loop`
|
||||||
|
|
||||||
### LoopVariableReusePlugin.php
|
### LoopVariableReusePlugin.php
|
||||||
|
|
||||||
|
|||||||
20
vendor/phan/phan/NEWS.md
vendored
20
vendor/phan/phan/NEWS.md
vendored
@@ -1,5 +1,20 @@
|
|||||||
Phan NEWS
|
Phan NEWS
|
||||||
|
|
||||||
|
Mar 03 2023, Phan 5.4.2
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
- Fix wording in EmptyStatementListPlugin issue messages.
|
||||||
|
- Add a few more functions where the return value should be used.
|
||||||
|
- Fix signature of exif_read_data() #4759
|
||||||
|
- Make allow_missing_properties setting aware of AllowDynamicProperties attribute for PHP 8.2
|
||||||
|
|
||||||
|
Maintenance:
|
||||||
|
- Require php-ast 1.1.0 or newer in PHP 8.2+ if php-ast is installed.
|
||||||
|
This release of php-ast makes the parsing of `AST_ARROW_FUNC` in php 8.2 match older php versions.
|
||||||
|
- Support parsing of PHP 8.2 syntax such as disjunctive normal form types and `readonly` classes in the polyfill/fallback parser.
|
||||||
|
- Fix bugs parsing `__halt_compiler()` in the polyfill/fallback parser.
|
||||||
|
|
||||||
Aug 25 2022, Phan 5.4.1
|
Aug 25 2022, Phan 5.4.1
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
@@ -14,6 +29,11 @@ New Features(Analysis):
|
|||||||
Miscellaneous:
|
Miscellaneous:
|
||||||
- Allow `array_filter` `$callback` to be null (#4715)
|
- Allow `array_filter` `$callback` to be null (#4715)
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
- Fix false positive warning in PHP < 8.0 for inferring the method signature of `new SoapFault`. (#4724)
|
||||||
|
(The constructor was internally declared in reflection as `SoapFault::SoapFault` until php 8.0)
|
||||||
|
Adjust the method signature of `SoapFault::__construct` to match the documentation/implementation.
|
||||||
|
|
||||||
Aug 08 2022, Phan 5.4.0
|
Aug 08 2022, Phan 5.4.0
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|||||||
2
vendor/phan/phan/composer.json
vendored
2
vendor/phan/phan/composer.json
vendored
@@ -29,7 +29,7 @@
|
|||||||
"composer/semver": "^1.4|^2.0|^3.0",
|
"composer/semver": "^1.4|^2.0|^3.0",
|
||||||
"composer/xdebug-handler": "^2.0|^3.0",
|
"composer/xdebug-handler": "^2.0|^3.0",
|
||||||
"felixfbecker/advanced-json-rpc": "^3.0.4",
|
"felixfbecker/advanced-json-rpc": "^3.0.4",
|
||||||
"microsoft/tolerant-php-parser": "0.1.1",
|
"microsoft/tolerant-php-parser": "0.1.2",
|
||||||
"netresearch/jsonmapper": "^1.6.0|^2.0|^3.0|^4.0",
|
"netresearch/jsonmapper": "^1.6.0|^2.0|^3.0|^4.0",
|
||||||
"sabre/event": "^5.1.3",
|
"sabre/event": "^5.1.3",
|
||||||
"symfony/console": "^3.2|^4.0|^5.0|^6.0",
|
"symfony/console": "^3.2|^4.0|^5.0|^6.0",
|
||||||
|
|||||||
232
vendor/phan/phan/composer.lock
generated
vendored
232
vendor/phan/phan/composer.lock
generated
vendored
@@ -4,20 +4,20 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "62f4c0f1a6e50535b7c03182832d5c4e",
|
"content-hash": "301a32dbdfef414765074fc7e60effbb",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "composer/pcre",
|
"name": "composer/pcre",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/composer/pcre.git",
|
"url": "https://github.com/composer/pcre.git",
|
||||||
"reference": "c8e9d27cfc5ed22643c19c160455b473ffd8aabe"
|
"reference": "3fdb2807b31a78a40ad89570e30ec77466c98717"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/composer/pcre/zipball/c8e9d27cfc5ed22643c19c160455b473ffd8aabe",
|
"url": "https://api.github.com/repos/composer/pcre/zipball/3fdb2807b31a78a40ad89570e30ec77466c98717",
|
||||||
"reference": "c8e9d27cfc5ed22643c19c160455b473ffd8aabe",
|
"reference": "3fdb2807b31a78a40ad89570e30ec77466c98717",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/composer/pcre/issues",
|
"issues": "https://github.com/composer/pcre/issues",
|
||||||
"source": "https://github.com/composer/pcre/tree/2.0.0"
|
"source": "https://github.com/composer/pcre/tree/2.1.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-02-25T20:05:29+00:00"
|
"time": "2022-11-16T18:32:04+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/semver",
|
"name": "composer/semver",
|
||||||
@@ -271,16 +271,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "microsoft/tolerant-php-parser",
|
"name": "microsoft/tolerant-php-parser",
|
||||||
"version": "v0.1.1",
|
"version": "v0.1.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/microsoft/tolerant-php-parser.git",
|
"url": "https://github.com/microsoft/tolerant-php-parser.git",
|
||||||
"reference": "6a965617cf484355048ac6d2d3de7b6ec93abb16"
|
"reference": "3eccfd273323aaf69513e2f1c888393f5947804b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/microsoft/tolerant-php-parser/zipball/6a965617cf484355048ac6d2d3de7b6ec93abb16",
|
"url": "https://api.github.com/repos/microsoft/tolerant-php-parser/zipball/3eccfd273323aaf69513e2f1c888393f5947804b",
|
||||||
"reference": "6a965617cf484355048ac6d2d3de7b6ec93abb16",
|
"reference": "3eccfd273323aaf69513e2f1c888393f5947804b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -310,22 +310,22 @@
|
|||||||
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
|
"description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/microsoft/tolerant-php-parser/issues",
|
"issues": "https://github.com/microsoft/tolerant-php-parser/issues",
|
||||||
"source": "https://github.com/microsoft/tolerant-php-parser/tree/v0.1.1"
|
"source": "https://github.com/microsoft/tolerant-php-parser/tree/v0.1.2"
|
||||||
},
|
},
|
||||||
"time": "2021-07-16T21:28:12+00:00"
|
"time": "2022-10-05T17:30:19+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "netresearch/jsonmapper",
|
"name": "netresearch/jsonmapper",
|
||||||
"version": "v4.0.0",
|
"version": "v4.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/cweiske/jsonmapper.git",
|
"url": "https://github.com/cweiske/jsonmapper.git",
|
||||||
"reference": "8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d"
|
"reference": "cfa81ea1d35294d64adb9c68aa4cb9e92400e53f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d",
|
"url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/cfa81ea1d35294d64adb9c68aa4cb9e92400e53f",
|
||||||
"reference": "8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d",
|
"reference": "cfa81ea1d35294d64adb9c68aa4cb9e92400e53f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -361,9 +361,9 @@
|
|||||||
"support": {
|
"support": {
|
||||||
"email": "cweiske@cweiske.de",
|
"email": "cweiske@cweiske.de",
|
||||||
"issues": "https://github.com/cweiske/jsonmapper/issues",
|
"issues": "https://github.com/cweiske/jsonmapper/issues",
|
||||||
"source": "https://github.com/cweiske/jsonmapper/tree/v4.0.0"
|
"source": "https://github.com/cweiske/jsonmapper/tree/v4.1.0"
|
||||||
},
|
},
|
||||||
"time": "2020-12-01T19:48:11+00:00"
|
"time": "2022-12-08T20:46:14+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/reflection-common",
|
"name": "phpdocumentor/reflection-common",
|
||||||
@@ -691,16 +691,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/console",
|
"name": "symfony/console",
|
||||||
"version": "v5.4.11",
|
"version": "v5.4.21",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/console.git",
|
"url": "https://github.com/symfony/console.git",
|
||||||
"reference": "535846c7ee6bc4dd027ca0d93220601456734b10"
|
"reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/console/zipball/535846c7ee6bc4dd027ca0d93220601456734b10",
|
"url": "https://api.github.com/repos/symfony/console/zipball/c77433ddc6cdc689caf48065d9ea22ca0853fbd9",
|
||||||
"reference": "535846c7ee6bc4dd027ca0d93220601456734b10",
|
"reference": "c77433ddc6cdc689caf48065d9ea22ca0853fbd9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -770,7 +770,7 @@
|
|||||||
"terminal"
|
"terminal"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/console/tree/v5.4.11"
|
"source": "https://github.com/symfony/console/tree/v5.4.21"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -786,7 +786,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-07-22T10:42:43+00:00"
|
"time": "2023-02-25T16:59:41+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/deprecation-contracts",
|
"name": "symfony/deprecation-contracts",
|
||||||
@@ -857,16 +857,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-ctype",
|
"name": "symfony/polyfill-ctype",
|
||||||
"version": "v1.26.0",
|
"version": "v1.27.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||||
"reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4"
|
"reference": "5bbc823adecdae860bb64756d639ecfec17b050a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4",
|
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a",
|
||||||
"reference": "6fd1b9a79f6e3cf65f9e679b23af304cd9e010d4",
|
"reference": "5bbc823adecdae860bb64756d639ecfec17b050a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -881,7 +881,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.26-dev"
|
"dev-main": "1.27-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
@@ -919,7 +919,7 @@
|
|||||||
"portable"
|
"portable"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.26.0"
|
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -935,20 +935,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-05-24T11:49:31+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-intl-grapheme",
|
"name": "symfony/polyfill-intl-grapheme",
|
||||||
"version": "v1.26.0",
|
"version": "v1.27.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
|
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
|
||||||
"reference": "433d05519ce6990bf3530fba6957499d327395c2"
|
"reference": "511a08c03c1960e08a883f4cffcacd219b758354"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/433d05519ce6990bf3530fba6957499d327395c2",
|
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354",
|
||||||
"reference": "433d05519ce6990bf3530fba6957499d327395c2",
|
"reference": "511a08c03c1960e08a883f4cffcacd219b758354",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -960,7 +960,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.26-dev"
|
"dev-main": "1.27-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
@@ -1000,7 +1000,7 @@
|
|||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.26.0"
|
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1016,20 +1016,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-05-24T11:49:31+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-intl-normalizer",
|
"name": "symfony/polyfill-intl-normalizer",
|
||||||
"version": "v1.26.0",
|
"version": "v1.27.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
||||||
"reference": "219aa369ceff116e673852dce47c3a41794c14bd"
|
"reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/219aa369ceff116e673852dce47c3a41794c14bd",
|
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6",
|
||||||
"reference": "219aa369ceff116e673852dce47c3a41794c14bd",
|
"reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1041,7 +1041,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.26-dev"
|
"dev-main": "1.27-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
@@ -1084,7 +1084,7 @@
|
|||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.26.0"
|
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1100,20 +1100,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-05-24T11:49:31+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-mbstring",
|
"name": "symfony/polyfill-mbstring",
|
||||||
"version": "v1.26.0",
|
"version": "v1.27.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||||
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e"
|
"reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
|
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
|
||||||
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
|
"reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1128,7 +1128,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.26-dev"
|
"dev-main": "1.27-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
@@ -1167,7 +1167,7 @@
|
|||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0"
|
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1183,20 +1183,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-05-24T11:49:31+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-php73",
|
"name": "symfony/polyfill-php73",
|
||||||
"version": "v1.26.0",
|
"version": "v1.27.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-php73.git",
|
"url": "https://github.com/symfony/polyfill-php73.git",
|
||||||
"reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85"
|
"reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/e440d35fa0286f77fb45b79a03fedbeda9307e85",
|
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9",
|
||||||
"reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85",
|
"reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1205,7 +1205,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.26-dev"
|
"dev-main": "1.27-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
@@ -1246,7 +1246,7 @@
|
|||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-php73/tree/v1.26.0"
|
"source": "https://github.com/symfony/polyfill-php73/tree/v1.27.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1262,20 +1262,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-05-24T11:49:31+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-php80",
|
"name": "symfony/polyfill-php80",
|
||||||
"version": "v1.26.0",
|
"version": "v1.27.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-php80.git",
|
"url": "https://github.com/symfony/polyfill-php80.git",
|
||||||
"reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace"
|
"reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/cfa0ae98841b9e461207c13ab093d76b0fa7bace",
|
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
|
||||||
"reference": "cfa0ae98841b9e461207c13ab093d76b0fa7bace",
|
"reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1284,7 +1284,7 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.26-dev"
|
"dev-main": "1.27-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
@@ -1329,7 +1329,7 @@
|
|||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.26.0"
|
"source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1345,7 +1345,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-05-10T07:21:04+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
@@ -1432,16 +1432,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/string",
|
"name": "symfony/string",
|
||||||
"version": "v5.4.11",
|
"version": "v5.4.21",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/string.git",
|
"url": "https://github.com/symfony/string.git",
|
||||||
"reference": "5eb661e49ad389e4ae2b6e4df8d783a8a6548322"
|
"reference": "edac10d167b78b1d90f46a80320d632de0bd9f2f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/string/zipball/5eb661e49ad389e4ae2b6e4df8d783a8a6548322",
|
"url": "https://api.github.com/repos/symfony/string/zipball/edac10d167b78b1d90f46a80320d632de0bd9f2f",
|
||||||
"reference": "5eb661e49ad389e4ae2b6e4df8d783a8a6548322",
|
"reference": "edac10d167b78b1d90f46a80320d632de0bd9f2f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1498,7 +1498,7 @@
|
|||||||
"utf8"
|
"utf8"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/string/tree/v5.4.11"
|
"source": "https://github.com/symfony/string/tree/v5.4.21"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1514,34 +1514,42 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-07-24T16:15:25+00:00"
|
"time": "2023-02-22T08:00:55+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tysonandre/var_representation_polyfill",
|
"name": "tysonandre/var_representation_polyfill",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/TysonAndre/var_representation_polyfill.git",
|
"url": "https://github.com/TysonAndre/var_representation_polyfill.git",
|
||||||
"reference": "e925b7b0806b39f26aa899202ee065decbabafdb"
|
"reference": "e9116c2c352bb0835ca428b442dde7767c11ad32"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/TysonAndre/var_representation_polyfill/zipball/e925b7b0806b39f26aa899202ee065decbabafdb",
|
"url": "https://api.github.com/repos/TysonAndre/var_representation_polyfill/zipball/e9116c2c352bb0835ca428b442dde7767c11ad32",
|
||||||
"reference": "e925b7b0806b39f26aa899202ee065decbabafdb",
|
"reference": "e9116c2c352bb0835ca428b442dde7767c11ad32",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ext-tokenizer": "*",
|
"ext-tokenizer": "*",
|
||||||
"php": "^7.2.0|^8.0.0"
|
"php": "^7.2.0|^8.0.0"
|
||||||
},
|
},
|
||||||
|
"provide": {
|
||||||
|
"ext-var_representation": "*"
|
||||||
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phan/phan": "^5.1",
|
"phan/phan": "^5.4.1",
|
||||||
"phpunit/phpunit": "^8.5.0"
|
"phpunit/phpunit": "^8.5.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-var_representation": "*"
|
"ext-var_representation": "For best performance"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-main": "0.1.3-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"files": [
|
"files": [
|
||||||
"src/var_representation.php"
|
"src/var_representation.php"
|
||||||
@@ -1566,9 +1574,9 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/TysonAndre/var_representation_polyfill/issues",
|
"issues": "https://github.com/TysonAndre/var_representation_polyfill/issues",
|
||||||
"source": "https://github.com/TysonAndre/var_representation_polyfill/tree/0.1.2"
|
"source": "https://github.com/TysonAndre/var_representation_polyfill/tree/0.1.3"
|
||||||
},
|
},
|
||||||
"time": "2022-08-11T12:33:19+00:00"
|
"time": "2022-08-31T12:59:22+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "webmozart/assert",
|
"name": "webmozart/assert",
|
||||||
@@ -1632,30 +1640,30 @@
|
|||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "doctrine/instantiator",
|
"name": "doctrine/instantiator",
|
||||||
"version": "1.4.1",
|
"version": "1.5.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/doctrine/instantiator.git",
|
"url": "https://github.com/doctrine/instantiator.git",
|
||||||
"reference": "10dcfce151b967d20fde1b34ae6640712c3891bc"
|
"reference": "0a0fa9780f5d4e507415a065172d26a98d02047b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc",
|
"url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b",
|
||||||
"reference": "10dcfce151b967d20fde1b34ae6640712c3891bc",
|
"reference": "0a0fa9780f5d4e507415a065172d26a98d02047b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.1 || ^8.0"
|
"php": "^7.1 || ^8.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/coding-standard": "^9",
|
"doctrine/coding-standard": "^9 || ^11",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"ext-phar": "*",
|
"ext-phar": "*",
|
||||||
"phpbench/phpbench": "^0.16 || ^1",
|
"phpbench/phpbench": "^0.16 || ^1",
|
||||||
"phpstan/phpstan": "^1.4",
|
"phpstan/phpstan": "^1.4",
|
||||||
"phpstan/phpstan-phpunit": "^1",
|
"phpstan/phpstan-phpunit": "^1",
|
||||||
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
|
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
|
||||||
"vimeo/psalm": "^4.22"
|
"vimeo/psalm": "^4.30 || ^5.4"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -1682,7 +1690,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/doctrine/instantiator/issues",
|
"issues": "https://github.com/doctrine/instantiator/issues",
|
||||||
"source": "https://github.com/doctrine/instantiator/tree/1.4.1"
|
"source": "https://github.com/doctrine/instantiator/tree/1.5.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -1698,7 +1706,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-03-03T08:28:38+00:00"
|
"time": "2022-12-30T00:15:36+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "myclabs/deep-copy",
|
"name": "myclabs/deep-copy",
|
||||||
@@ -2169,16 +2177,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "8.5.29",
|
"version": "8.5.33",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "e8c563c47a9a303662955518ca532b022b337f4d"
|
"reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e8c563c47a9a303662955518ca532b022b337f4d",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e",
|
||||||
"reference": "e8c563c47a9a303662955518ca532b022b337f4d",
|
"reference": "7d1ff0e8c6b35db78ff13e3e05517d7cbf7aa32e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2197,10 +2205,10 @@
|
|||||||
"phpunit/php-file-iterator": "^2.0.4",
|
"phpunit/php-file-iterator": "^2.0.4",
|
||||||
"phpunit/php-text-template": "^1.2.1",
|
"phpunit/php-text-template": "^1.2.1",
|
||||||
"phpunit/php-timer": "^2.1.2",
|
"phpunit/php-timer": "^2.1.2",
|
||||||
"sebastian/comparator": "^3.0.2",
|
"sebastian/comparator": "^3.0.5",
|
||||||
"sebastian/diff": "^3.0.2",
|
"sebastian/diff": "^3.0.2",
|
||||||
"sebastian/environment": "^4.2.3",
|
"sebastian/environment": "^4.2.3",
|
||||||
"sebastian/exporter": "^3.1.2",
|
"sebastian/exporter": "^3.1.5",
|
||||||
"sebastian/global-state": "^3.0.0",
|
"sebastian/global-state": "^3.0.0",
|
||||||
"sebastian/object-enumerator": "^3.0.3",
|
"sebastian/object-enumerator": "^3.0.3",
|
||||||
"sebastian/resource-operations": "^2.0.1",
|
"sebastian/resource-operations": "^2.0.1",
|
||||||
@@ -2246,7 +2254,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.29"
|
"source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.33"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2256,9 +2264,13 @@
|
|||||||
{
|
{
|
||||||
"url": "https://github.com/sebastianbergmann",
|
"url": "https://github.com/sebastianbergmann",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit",
|
||||||
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-08-22T13:59:39+00:00"
|
"time": "2023-02-27T13:04:50+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/code-unit-reverse-lookup",
|
"name": "sebastian/code-unit-reverse-lookup",
|
||||||
@@ -2317,16 +2329,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/comparator",
|
"name": "sebastian/comparator",
|
||||||
"version": "3.0.3",
|
"version": "3.0.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/comparator.git",
|
"url": "https://github.com/sebastianbergmann/comparator.git",
|
||||||
"reference": "1071dfcef776a57013124ff35e1fc41ccd294758"
|
"reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1071dfcef776a57013124ff35e1fc41ccd294758",
|
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770",
|
||||||
"reference": "1071dfcef776a57013124ff35e1fc41ccd294758",
|
"reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2379,7 +2391,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/comparator/issues",
|
"issues": "https://github.com/sebastianbergmann/comparator/issues",
|
||||||
"source": "https://github.com/sebastianbergmann/comparator/tree/3.0.3"
|
"source": "https://github.com/sebastianbergmann/comparator/tree/3.0.5"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2387,7 +2399,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-11-30T08:04:30+00:00"
|
"time": "2022-09-14T12:31:48+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/diff",
|
"name": "sebastian/diff",
|
||||||
@@ -2520,16 +2532,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/exporter",
|
"name": "sebastian/exporter",
|
||||||
"version": "3.1.4",
|
"version": "3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/exporter.git",
|
"url": "https://github.com/sebastianbergmann/exporter.git",
|
||||||
"reference": "0c32ea2e40dbf59de29f3b49bf375176ce7dd8db"
|
"reference": "73a9676f2833b9a7c36968f9d882589cd75511e6"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/0c32ea2e40dbf59de29f3b49bf375176ce7dd8db",
|
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/73a9676f2833b9a7c36968f9d882589cd75511e6",
|
||||||
"reference": "0c32ea2e40dbf59de29f3b49bf375176ce7dd8db",
|
"reference": "73a9676f2833b9a7c36968f9d882589cd75511e6",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2585,7 +2597,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/exporter/issues",
|
"issues": "https://github.com/sebastianbergmann/exporter/issues",
|
||||||
"source": "https://github.com/sebastianbergmann/exporter/tree/3.1.4"
|
"source": "https://github.com/sebastianbergmann/exporter/tree/3.1.5"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2593,7 +2605,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-11-11T13:51:24+00:00"
|
"time": "2022-09-14T06:00:17+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/global-state",
|
"name": "sebastian/global-state",
|
||||||
@@ -3055,5 +3067,5 @@
|
|||||||
"platform-overrides": {
|
"platform-overrides": {
|
||||||
"php": "7.2.24"
|
"php": "7.2.24"
|
||||||
},
|
},
|
||||||
"plugin-api-version": "2.3.0"
|
"plugin-api-version": "2.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1269,6 +1269,9 @@ class TolerantASTConverter
|
|||||||
$variableName !== null ? self::getStartLine($variableName) : $start_line
|
$variableName !== null ? self::getStartLine($variableName) : $start_line
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
'Microsoft\PhpParser\Node\Statement\HaltCompilerStatement' => static function (PhpParser\Node\Statement\HaltCompilerStatement $n, int $start_line): ast\Node {
|
||||||
|
return new ast\Node(ast\AST_HALT_COMPILER, 0, ['offset' => $n->getHaltCompilerOffset()], $start_line);
|
||||||
|
},
|
||||||
'Microsoft\PhpParser\Node\Statement\InterfaceDeclaration' => static function (PhpParser\Node\Statement\InterfaceDeclaration $n, int $start_line): ast\Node {
|
'Microsoft\PhpParser\Node\Statement\InterfaceDeclaration' => static function (PhpParser\Node\Statement\InterfaceDeclaration $n, int $start_line): ast\Node {
|
||||||
if ($n->interfaceKeyword) {
|
if ($n->interfaceKeyword) {
|
||||||
$start_line = self::getStartLine($n->interfaceKeyword);
|
$start_line = self::getStartLine($n->interfaceKeyword);
|
||||||
@@ -1294,7 +1297,7 @@ class TolerantASTConverter
|
|||||||
$end_line = static::getEndLine($n);
|
$end_line = static::getEndLine($n);
|
||||||
$base_class = $n->classBaseClause->baseClass ?? null;
|
$base_class = $n->classBaseClause->baseClass ?? null;
|
||||||
return static::astStmtClass(
|
return static::astStmtClass(
|
||||||
static::phpParserClassModifierToAstClassFlags($n->abstractOrFinalModifier),
|
static::phpParserClassModifiersToAstClassFlags($n->abstractOrFinalModifier, $n->modifiers),
|
||||||
static::tokenToString($n->name),
|
static::tokenToString($n->name),
|
||||||
static::phpParserAttributeGroupsToAstAttributeList($n->attributes),
|
static::phpParserAttributeGroupsToAstAttributeList($n->attributes),
|
||||||
$base_class !== null ? static::phpParserNonValueNodeToAstNode($base_class) : null,
|
$base_class !== null ? static::phpParserNonValueNodeToAstNode($base_class) : null,
|
||||||
@@ -1940,6 +1943,23 @@ class TolerantASTConverter
|
|||||||
return new ast\Node($is_intersection ? ast\AST_TYPE_INTERSECTION : ast\AST_TYPE_UNION, 0, $types, $types[0]->lineno);
|
return new ast\Node($is_intersection ? ast\AST_TYPE_INTERSECTION : ast\AST_TYPE_UNION, 0, $types, $types[0]->lineno);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static function phpParserParenthesizedIntersectionTypeToAstNode(PhpParser\Node\ParenthesizedIntersectionType $n, int $start_line): ?ast\Node {
|
||||||
|
$children = [];
|
||||||
|
foreach ($n->children->children ?? [] as $c) {
|
||||||
|
if ($c instanceof Token && $c->kind === TokenKind::AmpersandToken) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$result = self::phpParserTypeToAstNode($c, $start_line);
|
||||||
|
if ($result) {
|
||||||
|
$children[] = $result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (count($children) <= 1) {
|
||||||
|
return $children[0] ?? null;
|
||||||
|
}
|
||||||
|
return new ast\Node(ast\AST_TYPE_INTERSECTION, 0, $children, $start_line);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param PhpParser\Node\QualifiedName|Token|null $type
|
* @param PhpParser\Node\QualifiedName|Token|null $type
|
||||||
*/
|
*/
|
||||||
@@ -1951,7 +1971,12 @@ class TolerantASTConverter
|
|||||||
$original_type = $type;
|
$original_type = $type;
|
||||||
if ($type instanceof PhpParser\Node\QualifiedName) {
|
if ($type instanceof PhpParser\Node\QualifiedName) {
|
||||||
$type = static::phpParserNameToString($type);
|
$type = static::phpParserNameToString($type);
|
||||||
|
} elseif ($type instanceof PhpParser\Node\ParenthesizedIntersectionType) {
|
||||||
|
return static::phpParserParenthesizedIntersectionTypeToAstNode($type, $line);
|
||||||
} elseif ($type instanceof Token) {
|
} elseif ($type instanceof Token) {
|
||||||
|
if (get_class($type) !== Token::class) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$type = static::tokenToString($type);
|
$type = static::tokenToString($type);
|
||||||
}
|
}
|
||||||
if (\is_string($type)) {
|
if (\is_string($type)) {
|
||||||
@@ -2283,24 +2308,35 @@ class TolerantASTConverter
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private static function phpParserClassModifierToAstClassFlags(?Token $modifier): int
|
||||||
* @param ?Token $flags
|
|
||||||
* @throws InvalidArgumentException if the class flags were unexpected
|
|
||||||
*/
|
|
||||||
private static function phpParserClassModifierToAstClassFlags(?Token $flags): int
|
|
||||||
{
|
{
|
||||||
if ($flags === null) {
|
if ($modifier === null) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
switch ($flags->kind) {
|
switch ($modifier->kind) {
|
||||||
case TokenKind::AbstractKeyword:
|
case TokenKind::AbstractKeyword:
|
||||||
return flags\CLASS_ABSTRACT;
|
return flags\CLASS_ABSTRACT;
|
||||||
case TokenKind::FinalKeyword:
|
case TokenKind::FinalKeyword:
|
||||||
return flags\CLASS_FINAL;
|
return flags\CLASS_FINAL;
|
||||||
|
case TokenKind::ReadonlyKeyword:
|
||||||
|
return flags\CLASS_READONLY;
|
||||||
default:
|
default:
|
||||||
throw new InvalidArgumentException("Unexpected kind '" . Token::getTokenKindNameFromValue($flags->kind) . "'");
|
throw new InvalidArgumentException("Unexpected kind '" . Token::getTokenKindNameFromValue($modifier->kind) . "'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @param ?Token $modifier
|
||||||
|
* @param list<Token> $modifiers
|
||||||
|
* @throws InvalidArgumentException if the class flags were unexpected
|
||||||
|
*/
|
||||||
|
private static function phpParserClassModifiersToAstClassFlags(?Token $modifier, array $modifiers): int
|
||||||
|
{
|
||||||
|
$flags = self::phpParserClassModifierToAstClassFlags($modifier);
|
||||||
|
foreach ($modifiers as $extra_modifier) {
|
||||||
|
$flags |= self::phpParserClassModifierToAstClassFlags($extra_modifier);
|
||||||
|
}
|
||||||
|
return $flags;
|
||||||
|
}
|
||||||
|
|
||||||
private static function interfaceBaseClauseToNode(?\Microsoft\PhpParser\Node\InterfaceBaseClause $node): ?\ast\Node
|
private static function interfaceBaseClauseToNode(?\Microsoft\PhpParser\Node\InterfaceBaseClause $node): ?\ast\Node
|
||||||
{
|
{
|
||||||
|
|||||||
5
vendor/phan/phan/src/Phan/Bootstrap.php
vendored
5
vendor/phan/phan/src/Phan/Bootstrap.php
vendored
@@ -146,8 +146,8 @@ if (extension_loaded('ast')) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (PHP_VERSION_ID >= 80200 && version_compare($ast_version, '1.0.15') < 0) {
|
if (PHP_VERSION_ID >= 80200 && version_compare($ast_version, '1.1.0') < 0) {
|
||||||
$phan_output_ast_too_old_and_exit('1.0.15', '8.2');
|
$phan_output_ast_too_old_and_exit('1.1.0', '8.2');
|
||||||
} elseif (PHP_VERSION_ID >= 80100 && version_compare($ast_version, '1.0.14') < 0) {
|
} elseif (PHP_VERSION_ID >= 80100 && version_compare($ast_version, '1.0.14') < 0) {
|
||||||
$phan_output_ast_too_old_and_exit('1.0.14', '8.1');
|
$phan_output_ast_too_old_and_exit('1.0.14', '8.1');
|
||||||
} elseif (PHP_VERSION_ID >= 80000 && version_compare($ast_version, '1.0.11') < 0) {
|
} elseif (PHP_VERSION_ID >= 80000 && version_compare($ast_version, '1.0.11') < 0) {
|
||||||
@@ -360,6 +360,7 @@ function phan_error_handler(int $errno, string $errstr, string $errfile, int $er
|
|||||||
}
|
}
|
||||||
if ($errno === E_DEPRECATED) {
|
if ($errno === E_DEPRECATED) {
|
||||||
// Because php 7.2 is used in CI we're stuck on an unmaintained paratest version.
|
// Because php 7.2 is used in CI we're stuck on an unmaintained paratest version.
|
||||||
|
// NOTE: Known issues with dynamic properties in tolerant-php-parser are fixed in `main` (but not 0.1.1) but there may be remaining unknown ones.
|
||||||
if (preg_match('/^Creation of dynamic property (ParaTest\\\\Runners|Microsoft\\\\PhpParser|Phan\\\\LanguageServer\\\\LanguageServer::)/', $errstr)) {
|
if (preg_match('/^Creation of dynamic property (ParaTest\\\\Runners|Microsoft\\\\PhpParser|Phan\\\\LanguageServer\\\\LanguageServer::)/', $errstr)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
2
vendor/phan/phan/src/Phan/CLI.php
vendored
2
vendor/phan/phan/src/Phan/CLI.php
vendored
@@ -84,7 +84,7 @@ class CLI
|
|||||||
/**
|
/**
|
||||||
* This should be updated to x.y.z-dev after every release, and x.y.z before a release.
|
* This should be updated to x.y.z-dev after every release, and x.y.z before a release.
|
||||||
*/
|
*/
|
||||||
public const PHAN_VERSION = '5.4.1';
|
public const PHAN_VERSION = '5.4.2';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of short flags passed to getopt
|
* List of short flags passed to getopt
|
||||||
|
|||||||
@@ -488,6 +488,10 @@ class Clazz extends AddressableElement
|
|||||||
foreach ($method_list as $method) {
|
foreach ($method_list as $method) {
|
||||||
$clazz->addMethod($code_base, $method, None::instance());
|
$clazz->addMethod($code_base, $method, None::instance());
|
||||||
}
|
}
|
||||||
|
if (\PHP_VERSION_ID < 80000 && $reflection_method->isConstructor() && \strcasecmp($reflection_method->name, '__construct') !== 0) {
|
||||||
|
// E.g. SoapFault::SoapFault and other soap classes before PHP 8.0
|
||||||
|
$clazz->addMethod($code_base, Method::defaultConstructorForClass($clazz, $code_base), None::instance());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $clazz;
|
return $clazz;
|
||||||
@@ -2298,6 +2302,11 @@ class Clazz extends AddressableElement
|
|||||||
*/
|
*/
|
||||||
public function hasDynamicProperties(CodeBase $code_base): bool
|
public function hasDynamicProperties(CodeBase $code_base): bool
|
||||||
{
|
{
|
||||||
|
foreach($this->attribute_list as $attr) {
|
||||||
|
if ((string)$attr === '\AllowDynamicProperties') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
return $this->hasFlagsRecursive($code_base, Flags::CLASS_HAS_DYNAMIC_PROPERTIES);
|
return $this->hasFlagsRecursive($code_base, Flags::CLASS_HAS_DYNAMIC_PROPERTIES);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2979,6 +2988,16 @@ class Clazz extends AddressableElement
|
|||||||
$this->warnAboutAmbiguousInheritance($code_base, $class, $next_class_fqsen);
|
$this->warnAboutAmbiguousInheritance($code_base, $class, $next_class_fqsen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($attribute_list = $class->getAttributeList()) {
|
||||||
|
foreach($attribute_list as $attr) {
|
||||||
|
if ((string)$attr === "\AllowDynamicProperties") {
|
||||||
|
$new_attribute_list = $this->getAttributeList();
|
||||||
|
$new_attribute_list[] = $attr;
|
||||||
|
$this->setAttributeList($new_attribute_list);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// Constants should have been imported earlier, but call it again just in case
|
// Constants should have been imported earlier, but call it again just in case
|
||||||
$this->importConstantsFromAncestorClass($code_base, $class);
|
$this->importConstantsFromAncestorClass($code_base, $class);
|
||||||
|
|
||||||
|
|||||||
@@ -3074,7 +3074,7 @@ return [
|
|||||||
'Exception::getTraceAsString' => ['string'],
|
'Exception::getTraceAsString' => ['string'],
|
||||||
'exec' => ['string', 'command'=>'string', '&w_output='=>'array', '&w_result_code='=>'int'],
|
'exec' => ['string', 'command'=>'string', '&w_output='=>'array', '&w_result_code='=>'int'],
|
||||||
'exif_imagetype' => ['int|false', 'filename'=>'string'],
|
'exif_imagetype' => ['int|false', 'filename'=>'string'],
|
||||||
'exif_read_data' => ['array<string,mixed>|false', 'file'=>'string', 'required_sections='=>'string', 'as_arrays='=>'bool', 'read_thumbnail='=>'bool'],
|
'exif_read_data' => ['array<string,mixed>|false', 'file'=>'resource|string', 'required_sections='=>'string', 'as_arrays='=>'bool', 'read_thumbnail='=>'bool'],
|
||||||
'exif_tagname' => ['string|false', 'index'=>'int'],
|
'exif_tagname' => ['string|false', 'index'=>'int'],
|
||||||
'exif_thumbnail' => ['string|false', 'file'=>'string', '&w_width='=>'int', '&w_height='=>'int', '&w_image_type='=>'int'],
|
'exif_thumbnail' => ['string|false', 'file'=>'string', '&w_width='=>'int', '&w_height='=>'int', '&w_image_type='=>'int'],
|
||||||
'exit' => ['', 'status'=>'string|int'],
|
'exit' => ['', 'status'=>'string|int'],
|
||||||
@@ -13136,7 +13136,7 @@ return [
|
|||||||
'SoapClient::__soapCall' => ['', 'name'=>'string', 'args'=>'array', 'options='=>'array', 'inputHeaders='=>'SoapHeader|array', '&w_outputHeaders='=>'array'],
|
'SoapClient::__soapCall' => ['', 'name'=>'string', 'args'=>'array', 'options='=>'array', 'inputHeaders='=>'SoapHeader|array', '&w_outputHeaders='=>'array'],
|
||||||
'SoapClient::SoapClient' => ['object', 'wsdl'=>'mixed', 'options='=>'array'],
|
'SoapClient::SoapClient' => ['object', 'wsdl'=>'mixed', 'options='=>'array'],
|
||||||
'SoapFault::__clone' => ['void'],
|
'SoapFault::__clone' => ['void'],
|
||||||
'SoapFault::__construct' => ['void', 'code'=>'string', 'string'=>'string', 'actor='=>'string', 'details='=>'string', 'name='=>'string', 'headerFault='=>'string'],
|
'SoapFault::__construct' => ['void', 'code'=>'?string|?array{0:string,1:string}', 'string'=>'string', 'actor='=>'string', 'details='=>'mixed', 'name='=>'string', 'headerFault='=>'string'],
|
||||||
'SoapFault::__toString' => ['string'],
|
'SoapFault::__toString' => ['string'],
|
||||||
'SoapFault::__wakeup' => ['void'],
|
'SoapFault::__wakeup' => ['void'],
|
||||||
'SoapFault::getCode' => ['int'],
|
'SoapFault::getCode' => ['int'],
|
||||||
@@ -13146,7 +13146,7 @@ return [
|
|||||||
'SoapFault::getPrevious' => ['?Exception|?Throwable'],
|
'SoapFault::getPrevious' => ['?Exception|?Throwable'],
|
||||||
'SoapFault::getTrace' => ['array'],
|
'SoapFault::getTrace' => ['array'],
|
||||||
'SoapFault::getTraceAsString' => ['string'],
|
'SoapFault::getTraceAsString' => ['string'],
|
||||||
'SoapFault::SoapFault' => ['object', 'faultcode'=>'string', 'faultstring'=>'string', 'faultactor='=>'string', 'detail='=>'string', 'faultname='=>'string', 'headerfault='=>'string'],
|
'SoapFault::SoapFault' => ['void', 'code'=>'?string|?array{0:string,1:string}', 'string'=>'string', 'actor='=>'string', 'details='=>'mixed', 'name='=>'string', 'headerFault='=>'string'],
|
||||||
'SoapHeader::__construct' => ['void', 'namespace'=>'string', 'name'=>'string', 'data='=>'mixed', 'mustUnderstand='=>'bool', 'actor='=>'string'],
|
'SoapHeader::__construct' => ['void', 'namespace'=>'string', 'name'=>'string', 'data='=>'mixed', 'mustUnderstand='=>'bool', 'actor='=>'string'],
|
||||||
'SoapHeader::SoapHeader' => ['object', 'namespace'=>'string', 'name'=>'string', 'data='=>'mixed', 'mustunderstand='=>'bool', 'actor='=>'string'],
|
'SoapHeader::SoapHeader' => ['object', 'namespace'=>'string', 'name'=>'string', 'data='=>'mixed', 'mustunderstand='=>'bool', 'actor='=>'string'],
|
||||||
'SoapParam::__construct' => ['void', 'data'=>'mixed', 'name'=>'string'],
|
'SoapParam::__construct' => ['void', 'data'=>'mixed', 'name'=>'string'],
|
||||||
|
|||||||
@@ -131,6 +131,10 @@ return [
|
|||||||
'ZipArchive::setEncryptionName' => ['bool', 'name'=>'string', 'method'=>'int', 'password='=>'string'],
|
'ZipArchive::setEncryptionName' => ['bool', 'name'=>'string', 'method'=>'int', 'password='=>'string'],
|
||||||
],
|
],
|
||||||
'changed' => [
|
'changed' => [
|
||||||
|
'exif_read_data' => [
|
||||||
|
'old' => ['array<string,mixed>|false', 'file'=>'string', 'required_sections='=>'string', 'as_arrays='=>'bool', 'read_thumbnail='=>'bool'],
|
||||||
|
'new' => ['array<string,mixed>|false', 'file'=>'resource|string', 'required_sections='=>'string', 'as_arrays='=>'bool', 'read_thumbnail='=>'bool'],
|
||||||
|
],
|
||||||
'hash_copy' => [
|
'hash_copy' => [
|
||||||
'old' => ['resource', 'context'=>'resource'],
|
'old' => ['resource', 'context'=>'resource'],
|
||||||
'new' => ['HashContext', 'context'=>'HashContext'],
|
'new' => ['HashContext', 'context'=>'HashContext'],
|
||||||
|
|||||||
@@ -417,6 +417,7 @@ class UseReturnValuePlugin extends PluginV3 implements PostAnalyzeNodeCapability
|
|||||||
'gethostname' => true,
|
'gethostname' => true,
|
||||||
'getimagesize' => true,
|
'getimagesize' => true,
|
||||||
'get_include_path' => true,
|
'get_include_path' => true,
|
||||||
|
'get_mangled_object_vars' => true,
|
||||||
'get_magic_quotes_gpc' => true,
|
'get_magic_quotes_gpc' => true,
|
||||||
'get_magic_quotes_gpc_runtime' => true,
|
'get_magic_quotes_gpc_runtime' => true,
|
||||||
'getmypid' => true,
|
'getmypid' => true,
|
||||||
@@ -457,7 +458,9 @@ class UseReturnValuePlugin extends PluginV3 implements PostAnalyzeNodeCapability
|
|||||||
'hypot' => true,
|
'hypot' => true,
|
||||||
'iconv_strlen' => true,
|
'iconv_strlen' => true,
|
||||||
'iconv' => true,
|
'iconv' => true,
|
||||||
|
'imagecreate' => self::MUST_USE_WITH_SIDE_EFFECTS,
|
||||||
'imagecreatetruecolor' => self::MUST_USE_WITH_SIDE_EFFECTS,
|
'imagecreatetruecolor' => self::MUST_USE_WITH_SIDE_EFFECTS,
|
||||||
|
'imagecreatefromtga' => self::MUST_USE_WITH_SIDE_EFFECTS,
|
||||||
'imagetypes' => true,
|
'imagetypes' => true,
|
||||||
'implode' => true,
|
'implode' => true,
|
||||||
'in_array' => true,
|
'in_array' => true,
|
||||||
@@ -624,10 +627,12 @@ class UseReturnValuePlugin extends PluginV3 implements PostAnalyzeNodeCapability
|
|||||||
'openssl_encrypt' => true,
|
'openssl_encrypt' => true,
|
||||||
'openssl_error_string' => true,
|
'openssl_error_string' => true,
|
||||||
'openssl_random_pseudo_bytes' => true,
|
'openssl_random_pseudo_bytes' => true,
|
||||||
|
'openssl_x509_verify' => true,
|
||||||
'ord' => true,
|
'ord' => true,
|
||||||
'pack' => true,
|
'pack' => true,
|
||||||
'parse_ini_file' => true,
|
'parse_ini_file' => true,
|
||||||
'parse_url' => true,
|
'parse_url' => true,
|
||||||
|
'password_algos' => true,
|
||||||
'pathinfo' => true,
|
'pathinfo' => true,
|
||||||
'pdo::getattribute' => true,
|
'pdo::getattribute' => true,
|
||||||
'pdo::prepare' => true,
|
'pdo::prepare' => true,
|
||||||
@@ -742,6 +747,8 @@ class UseReturnValuePlugin extends PluginV3 implements PostAnalyzeNodeCapability
|
|||||||
'reflectionproperty::getvalue' => true,
|
'reflectionproperty::getvalue' => true,
|
||||||
'reflectionproperty::ispublic' => true,
|
'reflectionproperty::ispublic' => true,
|
||||||
'reflectionproperty::isstatic' => true,
|
'reflectionproperty::isstatic' => true,
|
||||||
|
'reflectionreference::fromarrayelement' => true,
|
||||||
|
'reflectionreference::getid' => true,
|
||||||
'reflectiontype::__tostring' => true,
|
'reflectiontype::__tostring' => true,
|
||||||
'resourcebundle::geterrorcode' => true,
|
'resourcebundle::geterrorcode' => true,
|
||||||
'round' => true,
|
'round' => true,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
# The resulting tags file may be combined with tags for JS, CSS, etc.
|
# The resulting tags file may be combined with tags for JS, CSS, etc.
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "Usage: $0 [options for phpctags]" 1>&2
|
echo "Usage: $0 [options for phpctags]" 1>&2
|
||||||
|
echo "You may wish to run ./phan --dump-ctags=basic instead" 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! type phpctags ; then
|
if ! type phpctags ; then
|
||||||
|
|||||||
1
vendor/phpstan/phpstan/README.md
vendored
1
vendor/phpstan/phpstan/README.md
vendored
@@ -86,7 +86,6 @@ PHPStan Pro is a paid add-on on top of open-source PHPStan Static Analysis Tool
|
|||||||
|
|
||||||
* Web UI for browsing found errors, you can click and open your editor of choice on the offending line.
|
* Web UI for browsing found errors, you can click and open your editor of choice on the offending line.
|
||||||
* Continuous analysis (watch mode): scans changed files in the background, refreshes the UI automatically.
|
* Continuous analysis (watch mode): scans changed files in the background, refreshes the UI automatically.
|
||||||
* Interactive fixer: lets you choose the right fix for found errors :blush:
|
|
||||||
|
|
||||||
Try it on PHPStan 0.12.45 or later by running it with the `--pro` option. You can create an account either by following the on-screen instructions, or by visiting [account.phpstan.com](https://account.phpstan.com/).
|
Try it on PHPStan 0.12.45 or later by running it with the `--pro` option. You can create an account either by following the on-screen instructions, or by visiting [account.phpstan.com](https://account.phpstan.com/).
|
||||||
|
|
||||||
|
|||||||
BIN
vendor/phpstan/phpstan/phpstan.phar
vendored
BIN
vendor/phpstan/phpstan/phpstan.phar
vendored
Binary file not shown.
26
vendor/phpstan/phpstan/phpstan.phar.asc
vendored
26
vendor/phpstan/phpstan/phpstan.phar.asc
vendored
@@ -1,16 +1,16 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmPjlIQACgkQzxoQjQ56
|
iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmQKD1cACgkQzxoQjQ56
|
||||||
5yB1xQ/+Kz+VRo1rx8OsL3lOZhbmGalg8QC1+r9SfoBI2jxi/IqG4olCH1b9yXiE
|
5yDePQ//ZtI/AKKhBlTvj6I6mw69TBuVi/7y+uU0CyrgKodCJlBCvprybXS2GItU
|
||||||
xaJU9xC5H+258a1JtfeUszm0zXgt/CHIHSVq3VAMlEajMbOHDSy7i9GrRA9OmG0H
|
rh2rMrX75IGOx8tEBs/6Ec5BuPF5rIQZdPndsYzT+sH8hBCLCQ/SlgtE/bZ7CIjr
|
||||||
5AbwB9tql4qZ0cj1SriS2j8VolUjb1C1aSJNAwMbBWbd1QlZqGLJLgo0rvVnN71h
|
/WBkTjXd+T2lGmIe1e57rxNUiy+tgWlEa/mf963lY5Oy5zfuui6HEVzEofGtdq3c
|
||||||
kK5aYSZzV6XcbrJpNwWNjI9KNhbSlwHfWvsl2oW7Pl/ydyaWY+ZmL+i9MOT+TAuu
|
l9FSx+9pVX4rCHKZzCy1lNuh3xdHEYS52mMCsYuuOo0GZ9e1cqFBj4VwF9WkLlr5
|
||||||
jJFzKY98HQk3ESOpRn2wg0tKU9qzzl5d5/3P03iY/o0VCHnj8aNSdXy+6aBS81n4
|
oEvJanpJx32YcYOkhD1tE5N/3Gxtw1AZMSq4onJvts8YyqGA2q7uTDdRmW2yyiB7
|
||||||
KPvBRclcwsncmBB4HNZxOpExVR2flaUM21ebSnmVv7Zofjcl/W+h49lrEAWFBjgy
|
DgPFrfE2rNGCymU6n04hPhKyMIBk8nJB89qYtInIzbpm7+xPRrt6pKWFGIvAXeNx
|
||||||
PkdAjlKSPOUYgqSSftKitDHFXtNOYi+qNot0gPEcDezWVOwWY/UorqL0V/PQp4bI
|
qDHM3H+efvDadXl47z3aJLsgXxnefI6VJjXJF28mxEmwtm9Jt6tNvzEz+FHDgM11
|
||||||
SCKnkgw4SWDFGFY3R/m7qet0oomOvp6sTJZb/B37GZ6l9KKu4lXLsS8XRXmCGzTW
|
xat1m+oREXArPNA7cDTu5IIQY0BomKKc6H8X/X5OtKoVj0xoXbu/tfLVIJ8XYech
|
||||||
Wu/taFkP35LYDQ9Y+HNzYXzNKFalCbJNj1Qdx31OvthBfK3/Jk0gG1YRrE3+0sAa
|
oAc+F0eA1k3vNxd5owM3ZaNqAFsGCA0dAgUWm2sNliZZZcnx0pWDvl/CG/Qetktz
|
||||||
J3qJX4nC/Zm7oK9wj5CvKMTS9tewbOBLgYNF1JuI2dlrhnc0VZXCdvg3M8SjI1zH
|
15DvlfokTtCXPihy4tk1rYh/+EZfrwTJAMg4Xn3t9XlBapLUVH09EoRRi/0cVs9J
|
||||||
5752T9NuxK5ot1i7TPcPHj8ln4t35aUT8c0f9S7ruFS0icobdyE=
|
7x1FBChPFcvMSwrPo+mPzmjTfJ59QCt0BqYk7q/84KtcX85KQlg=
|
||||||
=SwMZ
|
=3/5f
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
|||||||
@@ -2,6 +2,18 @@
|
|||||||
|
|
||||||
All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
|
All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
|
||||||
|
|
||||||
|
## [9.2.26] - 2023-03-06
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Improved the legend on the file pages of the HTML code coverage report
|
||||||
|
|
||||||
|
## [9.2.25] - 2023-02-25
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* [#981](https://github.com/sebastianbergmann/php-code-coverage/issues/981): `CodeUnitFindingVisitor` does not support DNF types
|
||||||
|
|
||||||
## [9.2.24] - 2023-01-26
|
## [9.2.24] - 2023-01-26
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
@@ -464,6 +476,8 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
|
|||||||
|
|
||||||
* This component is no longer supported on PHP 7.1
|
* This component is no longer supported on PHP 7.1
|
||||||
|
|
||||||
|
[9.2.26]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.25...9.2.26
|
||||||
|
[9.2.25]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.24...9.2.25
|
||||||
[9.2.24]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.23...9.2.24
|
[9.2.24]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.23...9.2.24
|
||||||
[9.2.23]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.22...9.2.23
|
[9.2.23]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.22...9.2.23
|
||||||
[9.2.22]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.21...9.2.22
|
[9.2.22]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.21...9.2.22
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
"ext-libxml": "*",
|
"ext-libxml": "*",
|
||||||
"ext-xmlwriter": "*",
|
"ext-xmlwriter": "*",
|
||||||
"nikic/php-parser": "^4.14",
|
"nikic/php-parser": "^4.15",
|
||||||
"phpunit/php-file-iterator": "^3.0.3",
|
"phpunit/php-file-iterator": "^3.0.3",
|
||||||
"phpunit/php-text-template": "^2.0.2",
|
"phpunit/php-text-template": "^2.0.2",
|
||||||
"sebastian/code-unit-reverse-lookup": "^2.0.2",
|
"sebastian/code-unit-reverse-lookup": "^2.0.2",
|
||||||
@@ -46,8 +46,8 @@
|
|||||||
"phpunit/phpunit": "^9.3"
|
"phpunit/phpunit": "^9.3"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-pcov": "*",
|
"ext-pcov": "PHP extension that provides line coverage",
|
||||||
"ext-xdebug": "*"
|
"ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ final class Dashboard extends Renderer
|
|||||||
private function coverageDistribution(array $classes): array
|
private function coverageDistribution(array $classes): array
|
||||||
{
|
{
|
||||||
$result = [
|
$result = [
|
||||||
'class' => [
|
'class' => [
|
||||||
'0%' => 0,
|
'0%' => 0,
|
||||||
'0-10%' => 0,
|
'0-10%' => 0,
|
||||||
'10-20%' => 0,
|
'10-20%' => 0,
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ final class File extends Renderer
|
|||||||
[
|
[
|
||||||
'items' => $this->renderItems($node),
|
'items' => $this->renderItems($node),
|
||||||
'lines' => $this->renderSourceWithLineCoverage($node),
|
'lines' => $this->renderSourceWithLineCoverage($node),
|
||||||
'legend' => '<p><span class="success"><strong>Executed</strong></span><span class="danger"><strong>Not Executed</strong></span><span class="warning"><strong>Dead Code</strong></span></p>',
|
'legend' => '<p><span class="legend covered-by-small-tests">Covered by small (and larger) tests</span><span class="legend covered-by-medium-tests">Covered by medium (and large) tests</span><span class="legend covered-by-large-tests">Covered by large tests (and tests of unknown size)</span><span class="legend not-covered">Not covered</span><span class="legend not-coverable">Not coverable</span></p>',
|
||||||
'structure' => '',
|
'structure' => '',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
@@ -284,19 +284,19 @@ final class File extends Renderer
|
|||||||
$buffer .= $this->renderItemTemplate(
|
$buffer .= $this->renderItemTemplate(
|
||||||
$template,
|
$template,
|
||||||
[
|
[
|
||||||
'name' => $this->abbreviateClassName($name),
|
'name' => $this->abbreviateClassName($name),
|
||||||
'numClasses' => $numClasses,
|
'numClasses' => $numClasses,
|
||||||
'numTestedClasses' => $numTestedClasses,
|
'numTestedClasses' => $numTestedClasses,
|
||||||
'numMethods' => $numMethods,
|
'numMethods' => $numMethods,
|
||||||
'numTestedMethods' => $numTestedMethods,
|
'numTestedMethods' => $numTestedMethods,
|
||||||
'linesExecutedPercent' => Percentage::fromFractionAndTotal(
|
'linesExecutedPercent' => Percentage::fromFractionAndTotal(
|
||||||
$item['executedLines'],
|
$item['executedLines'],
|
||||||
$item['executableLines'],
|
$item['executableLines'],
|
||||||
)->asFloat(),
|
)->asFloat(),
|
||||||
'linesExecutedPercentAsString' => $linesExecutedPercentAsString,
|
'linesExecutedPercentAsString' => $linesExecutedPercentAsString,
|
||||||
'numExecutedLines' => $item['executedLines'],
|
'numExecutedLines' => $item['executedLines'],
|
||||||
'numExecutableLines' => $item['executableLines'],
|
'numExecutableLines' => $item['executableLines'],
|
||||||
'branchesExecutedPercent' => Percentage::fromFractionAndTotal(
|
'branchesExecutedPercent' => Percentage::fromFractionAndTotal(
|
||||||
$item['executedBranches'],
|
$item['executedBranches'],
|
||||||
$item['executableBranches'],
|
$item['executableBranches'],
|
||||||
)->asFloat(),
|
)->asFloat(),
|
||||||
@@ -307,14 +307,14 @@ final class File extends Renderer
|
|||||||
$item['executedPaths'],
|
$item['executedPaths'],
|
||||||
$item['executablePaths']
|
$item['executablePaths']
|
||||||
)->asFloat(),
|
)->asFloat(),
|
||||||
'pathsExecutedPercentAsString' => $pathsExecutedPercentAsString,
|
'pathsExecutedPercentAsString' => $pathsExecutedPercentAsString,
|
||||||
'numExecutedPaths' => $item['executedPaths'],
|
'numExecutedPaths' => $item['executedPaths'],
|
||||||
'numExecutablePaths' => $item['executablePaths'],
|
'numExecutablePaths' => $item['executablePaths'],
|
||||||
'testedMethodsPercent' => $testedMethodsPercentage->asFloat(),
|
'testedMethodsPercent' => $testedMethodsPercentage->asFloat(),
|
||||||
'testedMethodsPercentAsString' => $testedMethodsPercentage->asString(),
|
'testedMethodsPercentAsString' => $testedMethodsPercentage->asString(),
|
||||||
'testedClassesPercent' => $testedClassesPercentage->asFloat(),
|
'testedClassesPercent' => $testedClassesPercentage->asFloat(),
|
||||||
'testedClassesPercentAsString' => $testedClassesPercentage->asString(),
|
'testedClassesPercentAsString' => $testedClassesPercentage->asString(),
|
||||||
'crap' => $item['crap'],
|
'crap' => $item['crap'],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -384,7 +384,7 @@ final class File extends Renderer
|
|||||||
return $this->renderItemTemplate(
|
return $this->renderItemTemplate(
|
||||||
$template,
|
$template,
|
||||||
[
|
[
|
||||||
'name' => sprintf(
|
'name' => sprintf(
|
||||||
'%s<a href="#%d"><abbr title="%s">%s</abbr></a>',
|
'%s<a href="#%d"><abbr title="%s">%s</abbr></a>',
|
||||||
$indent,
|
$indent,
|
||||||
$item['startLine'],
|
$item['startLine'],
|
||||||
|
|||||||
@@ -128,3 +128,31 @@ table + .structure-heading {
|
|||||||
border-top: 1px solid lightgrey;
|
border-top: 1px solid lightgrey;
|
||||||
padding-top: 0.5em;
|
padding-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.legend {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-right: 2px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.covered-by-small-tests {
|
||||||
|
background-color: #99cb84;
|
||||||
|
}
|
||||||
|
|
||||||
|
.covered-by-medium-tests {
|
||||||
|
background-color: #c3e3b5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.covered-by-large-tests {
|
||||||
|
background-color: #dff0d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.not-covered {
|
||||||
|
background-color: #f2dede;
|
||||||
|
}
|
||||||
|
|
||||||
|
.not-coverable {
|
||||||
|
background-color: #fcf8e3;
|
||||||
|
}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ use PhpParser\Node\Stmt\Function_;
|
|||||||
use PhpParser\Node\Stmt\Interface_;
|
use PhpParser\Node\Stmt\Interface_;
|
||||||
use PhpParser\Node\Stmt\Trait_;
|
use PhpParser\Node\Stmt\Trait_;
|
||||||
use PhpParser\Node\UnionType;
|
use PhpParser\Node\UnionType;
|
||||||
|
use PhpParser\NodeAbstract;
|
||||||
use PhpParser\NodeTraverser;
|
use PhpParser\NodeTraverser;
|
||||||
use PhpParser\NodeVisitorAbstract;
|
use PhpParser\NodeVisitorAbstract;
|
||||||
use SebastianBergmann\Complexity\CyclomaticComplexityCalculatingVisitor;
|
use SebastianBergmann\Complexity\CyclomaticComplexityCalculatingVisitor;
|
||||||
@@ -180,8 +181,12 @@ final class CodeUnitFindingVisitor extends NodeVisitorAbstract
|
|||||||
return '?' . $type->type;
|
return '?' . $type->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($type instanceof UnionType || $type instanceof IntersectionType) {
|
if ($type instanceof UnionType) {
|
||||||
return $this->unionOrIntersectionAsString($type);
|
return $this->unionTypeAsString($type);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($type instanceof IntersectionType) {
|
||||||
|
return $this->intersectionTypeAsString($type);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $type->toString();
|
return $type->toString();
|
||||||
@@ -298,29 +303,43 @@ final class CodeUnitFindingVisitor extends NodeVisitorAbstract
|
|||||||
return trim(rtrim($namespacedName, $name), '\\');
|
return trim(rtrim($namespacedName, $name), '\\');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function unionTypeAsString(UnionType $node): string
|
||||||
* @psalm-param UnionType|IntersectionType $type
|
|
||||||
*/
|
|
||||||
private function unionOrIntersectionAsString(ComplexType $type): string
|
|
||||||
{
|
{
|
||||||
if ($type instanceof UnionType) {
|
|
||||||
$separator = '|';
|
|
||||||
} else {
|
|
||||||
$separator = '&';
|
|
||||||
}
|
|
||||||
|
|
||||||
$types = [];
|
$types = [];
|
||||||
|
|
||||||
foreach ($type->types as $_type) {
|
foreach ($node->types as $type) {
|
||||||
if ($_type instanceof Name) {
|
if ($type instanceof IntersectionType) {
|
||||||
$types[] = $_type->toCodeString();
|
$types[] = '(' . $this->intersectionTypeAsString($type) . ')';
|
||||||
} else {
|
|
||||||
assert($_type instanceof Identifier);
|
|
||||||
|
|
||||||
$types[] = $_type->toString();
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$types[] = $this->typeAsString($type);
|
||||||
}
|
}
|
||||||
|
|
||||||
return implode($separator, $types);
|
return implode('|', $types);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function intersectionTypeAsString(IntersectionType $node): string
|
||||||
|
{
|
||||||
|
$types = [];
|
||||||
|
|
||||||
|
foreach ($node->types as $type) {
|
||||||
|
$types[] = $this->typeAsString($type);
|
||||||
|
}
|
||||||
|
|
||||||
|
return implode('&', $types);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @psalm-param Identifier|Name $node $node
|
||||||
|
*/
|
||||||
|
private function typeAsString(NodeAbstract $node): string
|
||||||
|
{
|
||||||
|
if ($node instanceof Name) {
|
||||||
|
return $node->toCodeString();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $node->toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,12 +88,19 @@ final class ExecutableLinesFindingVisitor extends NodeVisitorAbstract
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($node instanceof Node\Stmt\Interface_) {
|
||||||
|
foreach (range($node->getStartLine(), $node->getEndLine()) as $line) {
|
||||||
|
$this->unsets[$line] = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($node instanceof Node\Stmt\Declare_ ||
|
if ($node instanceof Node\Stmt\Declare_ ||
|
||||||
$node instanceof Node\Stmt\DeclareDeclare ||
|
$node instanceof Node\Stmt\DeclareDeclare ||
|
||||||
$node instanceof Node\Stmt\Else_ ||
|
$node instanceof Node\Stmt\Else_ ||
|
||||||
$node instanceof Node\Stmt\EnumCase ||
|
$node instanceof Node\Stmt\EnumCase ||
|
||||||
$node instanceof Node\Stmt\Finally_ ||
|
$node instanceof Node\Stmt\Finally_ ||
|
||||||
$node instanceof Node\Stmt\Interface_ ||
|
|
||||||
$node instanceof Node\Stmt\Label ||
|
$node instanceof Node\Stmt\Label ||
|
||||||
$node instanceof Node\Stmt\Namespace_ ||
|
$node instanceof Node\Stmt\Namespace_ ||
|
||||||
$node instanceof Node\Stmt\Nop ||
|
$node instanceof Node\Stmt\Nop ||
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ final class Version
|
|||||||
public static function id(): string
|
public static function id(): string
|
||||||
{
|
{
|
||||||
if (self::$version === null) {
|
if (self::$version === null) {
|
||||||
self::$version = (new VersionId('9.2.24', dirname(__DIR__)))->getVersion();
|
self::$version = (new VersionId('9.2.26', dirname(__DIR__)))->getVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::$version;
|
return self::$version;
|
||||||
|
|||||||
7
vendor/phpunit/phpunit/ChangeLog-8.5.md
vendored
7
vendor/phpunit/phpunit/ChangeLog-8.5.md
vendored
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
All notable changes of the PHPUnit 8.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
All notable changes of the PHPUnit 8.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
||||||
|
|
||||||
|
## [8.5.33] - 2023-02-27
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* [#5186](https://github.com/sebastianbergmann/phpunit/issues/5186): SBOM does not validate
|
||||||
|
|
||||||
## [8.5.32] - 2023-01-26
|
## [8.5.32] - 2023-01-26
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@@ -262,6 +268,7 @@ All notable changes of the PHPUnit 8.5 release series are documented in this fil
|
|||||||
* [#3967](https://github.com/sebastianbergmann/phpunit/issues/3967): Cannot double interface that extends interface that extends `\Throwable`
|
* [#3967](https://github.com/sebastianbergmann/phpunit/issues/3967): Cannot double interface that extends interface that extends `\Throwable`
|
||||||
* [#3968](https://github.com/sebastianbergmann/phpunit/pull/3968): Test class run in a separate PHP process are passing when `exit` called inside
|
* [#3968](https://github.com/sebastianbergmann/phpunit/pull/3968): Test class run in a separate PHP process are passing when `exit` called inside
|
||||||
|
|
||||||
|
[8.5.33]: https://github.com/sebastianbergmann/phpunit/compare/8.5.32...8.5.33
|
||||||
[8.5.32]: https://github.com/sebastianbergmann/phpunit/compare/8.5.31...8.5.32
|
[8.5.32]: https://github.com/sebastianbergmann/phpunit/compare/8.5.31...8.5.32
|
||||||
[8.5.31]: https://github.com/sebastianbergmann/phpunit/compare/8.5.30...8.5.31
|
[8.5.31]: https://github.com/sebastianbergmann/phpunit/compare/8.5.30...8.5.31
|
||||||
[8.5.30]: https://github.com/sebastianbergmann/phpunit/compare/8.5.29...8.5.30
|
[8.5.30]: https://github.com/sebastianbergmann/phpunit/compare/8.5.29...8.5.30
|
||||||
|
|||||||
20
vendor/phpunit/phpunit/ChangeLog-9.6.md
vendored
20
vendor/phpunit/phpunit/ChangeLog-9.6.md
vendored
@@ -2,6 +2,22 @@
|
|||||||
|
|
||||||
All notable changes of the PHPUnit 9.6 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
All notable changes of the PHPUnit 9.6 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
|
||||||
|
|
||||||
|
## [9.6.5] - 2023-03-09
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Backported the HTML and CSS improvements made to the `--testdox-html` from PHPUnit 10
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* [#5205](https://github.com/sebastianbergmann/phpunit/issues/5205): Wrong default value for optional parameter of `PHPUnit\Util\Test::parseTestMethodAnnotations()` causes `ReflectionException`
|
||||||
|
|
||||||
|
## [9.6.4] - 2023-02-27
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* [#5186](https://github.com/sebastianbergmann/phpunit/issues/5186): SBOM does not validate
|
||||||
|
|
||||||
## [9.6.3] - 2023-02-04
|
## [9.6.3] - 2023-02-04
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@@ -19,7 +35,7 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* [#5073](https://github.com/sebastianbergmann/phpunit/issues/5073): `--no-extensions` CLI option only prevents extension PHARs from being loaded
|
* [#5073](https://github.com/sebastianbergmann/phpunit/issues/5073): `--no-extensions` CLI option only prevents extension PHARs from being loaded
|
||||||
* [#5160](https://github.com/sebastianbergmann/phpunit/issues/5160): PHPUnit 9.6 misses deprecations for assertions and constraints removed in PHPUnit 10
|
* [#5160](https://github.com/sebastianbergmann/phpunit/issues/5160): Deprecate `assertClassHasAttribute()`, `assertClassNotHasAttribute()`, `assertClassHasStaticAttribute()`, `assertClassNotHasStaticAttribute()`, `assertObjectHasAttribute()`, `assertObjectNotHasAttribute()`, `classHasAttribute()`, `classHasStaticAttribute()`, and `objectHasAttribute()`
|
||||||
|
|
||||||
## [9.6.0] - 2023-02-03
|
## [9.6.0] - 2023-02-03
|
||||||
|
|
||||||
@@ -30,6 +46,8 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil
|
|||||||
* [#5064](https://github.com/sebastianbergmann/phpunit/issues/5064): Deprecate `PHPUnit\Framework\TestCase::getMockClass()`
|
* [#5064](https://github.com/sebastianbergmann/phpunit/issues/5064): Deprecate `PHPUnit\Framework\TestCase::getMockClass()`
|
||||||
* [#5132](https://github.com/sebastianbergmann/phpunit/issues/5132): Deprecate `Test` suffix for abstract test case classes
|
* [#5132](https://github.com/sebastianbergmann/phpunit/issues/5132): Deprecate `Test` suffix for abstract test case classes
|
||||||
|
|
||||||
|
[9.6.5]: https://github.com/sebastianbergmann/phpunit/compare/9.6.4...9.6.5
|
||||||
|
[9.6.4]: https://github.com/sebastianbergmann/phpunit/compare/9.6.3...9.6.4
|
||||||
[9.6.3]: https://github.com/sebastianbergmann/phpunit/compare/9.6.2...9.6.3
|
[9.6.3]: https://github.com/sebastianbergmann/phpunit/compare/9.6.2...9.6.3
|
||||||
[9.6.2]: https://github.com/sebastianbergmann/phpunit/compare/9.6.1...9.6.2
|
[9.6.2]: https://github.com/sebastianbergmann/phpunit/compare/9.6.1...9.6.2
|
||||||
[9.6.1]: https://github.com/sebastianbergmann/phpunit/compare/9.6.0...9.6.1
|
[9.6.1]: https://github.com/sebastianbergmann/phpunit/compare/9.6.0...9.6.1
|
||||||
|
|||||||
28
vendor/phpunit/phpunit/SECURITY.md
vendored
28
vendor/phpunit/phpunit/SECURITY.md
vendored
@@ -1,11 +1,33 @@
|
|||||||
# Security Policy
|
# Security Policy
|
||||||
|
|
||||||
PHPUnit is a framework for writing as well as a commandline tool for running tests. Writing and running tests is a development-time activity. There is no reason why PHPUnit should be installed on a webserver.
|
If you believe you have found a security vulnerability in PHPUnit, please report it to us through coordinated disclosure.
|
||||||
|
|
||||||
|
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**
|
||||||
|
|
||||||
|
Instead, please email `sebastian@phpunit.de`.
|
||||||
|
|
||||||
|
Please include as much of the information listed below as you can to help us better understand and resolve the issue:
|
||||||
|
|
||||||
|
* The type of issue
|
||||||
|
* Full paths of source file(s) related to the manifestation of the issue
|
||||||
|
* The location of the affected source code (tag/branch/commit or direct URL)
|
||||||
|
* Any special configuration required to reproduce the issue
|
||||||
|
* Step-by-step instructions to reproduce the issue
|
||||||
|
* Proof-of-concept or exploit code (if possible)
|
||||||
|
* Impact of the issue, including how an attacker might exploit the issue
|
||||||
|
|
||||||
|
This information will help us triage your report more quickly.
|
||||||
|
|
||||||
|
## Web Context
|
||||||
|
|
||||||
|
PHPUnit is a framework for writing as well as a command-line tool for running tests. Writing and running tests is a development-time activity. There is no reason why PHPUnit should be installed on a webserver and/or in a production environment.
|
||||||
|
|
||||||
**If you upload PHPUnit to a webserver then your deployment process is broken. On a more general note, if your `vendor` directory is publicly accessible on your webserver then your deployment process is also broken.**
|
**If you upload PHPUnit to a webserver then your deployment process is broken. On a more general note, if your `vendor` directory is publicly accessible on your webserver then your deployment process is also broken.**
|
||||||
|
|
||||||
Please note that if you upload PHPUnit to a webserver "bad things" may happen. [You have been warned.](https://thephp.cc/articles/phpunit-a-security-risk)
|
Please note that if you upload PHPUnit to a webserver "bad things" may happen. [You have been warned.](https://thephp.cc/articles/phpunit-a-security-risk)
|
||||||
|
|
||||||
## Security Contact Information
|
PHPUnit is developed with a focus on development environments and the command-line. No specific testing or hardening with regard to using PHPUnit in an HTTP or web context or with untrusted input data is performed. PHPUnit might also contain functionality that intentionally exposes internal application data for debugging purposes.
|
||||||
|
|
||||||
After the above, if you still would like to report a security vulnerability, please email `sebastian@phpunit.de`.
|
If PHPUnit is used in a web application, the application developer is responsible for filtering inputs or escaping outputs as necessary and for verifying that the used functionality is safe for use within the intended context.
|
||||||
|
|
||||||
|
Vulnerabilities specific to the use outside a development context will be fixed as applicable, provided that the fix does not have an averse effect on the primary use case for development purposes.
|
||||||
|
|||||||
4
vendor/phpunit/phpunit/composer.json
vendored
4
vendor/phpunit/phpunit/composer.json
vendored
@@ -57,8 +57,8 @@
|
|||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-soap": "*",
|
"ext-soap": "To be able to generate mocks based on WSDL files",
|
||||||
"ext-xdebug": "*"
|
"ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage"
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": [
|
||||||
"phpunit"
|
"phpunit"
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ final class IsEqualWithDelta extends Constraint
|
|||||||
public function toString(): string
|
public function toString(): string
|
||||||
{
|
{
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'is equal to %s with delta <%F>>',
|
'is equal to %s with delta <%F>',
|
||||||
$this->exporter()->export($this->value),
|
$this->exporter()->export($this->value),
|
||||||
$this->delta
|
$this->delta
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ final class Version
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (self::$version === '') {
|
if (self::$version === '') {
|
||||||
self::$version = (new VersionId('9.6.3', dirname(__DIR__, 2)))->getVersion();
|
self::$version = (new VersionId('9.6.5', dirname(__DIR__, 2)))->getVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::$version;
|
return self::$version;
|
||||||
|
|||||||
2
vendor/phpunit/phpunit/src/Util/Test.php
vendored
2
vendor/phpunit/phpunit/src/Util/Test.php
vendored
@@ -331,7 +331,7 @@ final class Test
|
|||||||
/**
|
/**
|
||||||
* @psalm-param class-string $className
|
* @psalm-param class-string $className
|
||||||
*/
|
*/
|
||||||
public static function parseTestMethodAnnotations(string $className, ?string $methodName = ''): array
|
public static function parseTestMethodAnnotations(string $className, ?string $methodName = null): array
|
||||||
{
|
{
|
||||||
$registry = Registry::getInstance();
|
$registry = Registry::getInstance();
|
||||||
|
|
||||||
|
|||||||
@@ -29,26 +29,47 @@ final class HtmlResultPrinter extends ResultPrinter
|
|||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
|
font-family: Source SansSerif Pro, Arial, sans-serif;
|
||||||
font-variant-ligatures: common-ligatures;
|
font-variant-ligatures: common-ligatures;
|
||||||
font-kerning: normal;
|
font-kerning: normal;
|
||||||
margin-left: 2em;
|
margin-left: 2rem;
|
||||||
background-color: #ffffff;
|
background-color: #fff;
|
||||||
color: #000000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body > ul > li {
|
body > ul > li {
|
||||||
font-family: Source Serif Pro, PT Sans, Trebuchet MS, Helvetica, Arial;
|
font-size: larger;
|
||||||
font-size: 2em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-family: Tahoma, Helvetica, Arial;
|
font-size: larger;
|
||||||
font-size: 3em;
|
text-decoration-line: underline;
|
||||||
|
text-decoration-thickness: 2px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin-bottom: 1em;
|
margin: 0 0 2rem;
|
||||||
|
padding: 0 0 0 1rem;
|
||||||
|
text-indent: -1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.success:before {
|
||||||
|
color: #4e9a06;
|
||||||
|
content: '✓';
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.defect {
|
||||||
|
color: #a40000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.defect:before {
|
||||||
|
color: #a40000;
|
||||||
|
content: '✗';
|
||||||
|
padding-right: 0.5rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -60,7 +81,7 @@ EOT;
|
|||||||
*/
|
*/
|
||||||
private const CLASS_HEADER = <<<'EOT'
|
private const CLASS_HEADER = <<<'EOT'
|
||||||
|
|
||||||
<h2 id="%s">%s</h2>
|
<h2>%s</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
EOT;
|
EOT;
|
||||||
@@ -101,7 +122,6 @@ EOT;
|
|||||||
$this->write(
|
$this->write(
|
||||||
sprintf(
|
sprintf(
|
||||||
self::CLASS_HEADER,
|
self::CLASS_HEADER,
|
||||||
$name,
|
|
||||||
$this->currentTestClassPrettified
|
$this->currentTestClassPrettified
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@@ -114,9 +134,8 @@ EOT;
|
|||||||
{
|
{
|
||||||
$this->write(
|
$this->write(
|
||||||
sprintf(
|
sprintf(
|
||||||
" <li style=\"color: %s;\">%s %s</li>\n",
|
" <li class=\"%s\">%s</li>\n",
|
||||||
$success ? '#555753' : '#ef2929',
|
$success ? 'success' : 'defect',
|
||||||
$success ? '✓' : '❌',
|
|
||||||
$name
|
$name
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
2
vendor/symfony/console/Application.php
vendored
2
vendor/symfony/console/Application.php
vendored
@@ -87,7 +87,7 @@ class Application implements ResetInterface
|
|||||||
private string $defaultCommand;
|
private string $defaultCommand;
|
||||||
private bool $singleCommand = false;
|
private bool $singleCommand = false;
|
||||||
private bool $initialized = false;
|
private bool $initialized = false;
|
||||||
private SignalRegistry $signalRegistry;
|
private ?SignalRegistry $signalRegistry = null;
|
||||||
private array $signalsToDispatchEvent = [];
|
private array $signalsToDispatchEvent = [];
|
||||||
|
|
||||||
public function __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN')
|
public function __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN')
|
||||||
|
|||||||
@@ -123,8 +123,6 @@ class ProgressIndicator
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Finish the indicator with message.
|
* Finish the indicator with message.
|
||||||
*
|
|
||||||
* @param $message
|
|
||||||
*/
|
*/
|
||||||
public function finish(string $message)
|
public function finish(string $message)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ class InputArgument
|
|||||||
private string $description;
|
private string $description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name The argument name
|
* @param string $name The argument name
|
||||||
* @param int|null $mode The argument mode: self::REQUIRED or self::OPTIONAL
|
* @param int|null $mode The argument mode: self::REQUIRED or self::OPTIONAL
|
||||||
* @param string $description A description text
|
* @param string $description A description text
|
||||||
* @param string|bool|int|float|array|null $default The default value (for self::OPTIONAL mode only)
|
* @param string|bool|int|float|array|null $default The default value (for self::OPTIONAL mode only)
|
||||||
* @param array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion
|
* @param array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException When argument mode is not valid
|
* @throws InvalidArgumentException When argument mode is not valid
|
||||||
|
|||||||
6
vendor/symfony/console/Input/InputOption.php
vendored
6
vendor/symfony/console/Input/InputOption.php
vendored
@@ -58,9 +58,9 @@ class InputOption
|
|||||||
private string $description;
|
private string $description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
|
* @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
|
||||||
* @param int|null $mode The option mode: One of the VALUE_* constants
|
* @param int|null $mode The option mode: One of the VALUE_* constants
|
||||||
* @param string|bool|int|float|array|null $default The default value (must be null for self::VALUE_NONE)
|
* @param string|bool|int|float|array|null $default The default value (must be null for self::VALUE_NONE)
|
||||||
* @param array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion
|
* @param array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException If option mode is invalid or incompatible
|
* @throws InvalidArgumentException If option mode is invalid or incompatible
|
||||||
|
|||||||
2
vendor/symfony/console/LICENSE
vendored
2
vendor/symfony/console/LICENSE
vendored
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2004-2023 Fabien Potencier
|
Copyright (c) 2004-present Fabien Potencier
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -115,7 +115,8 @@ class ConsoleSectionOutput extends StreamOutput
|
|||||||
// re-add the line break (that has been removed in the above `explode()` for
|
// re-add the line break (that has been removed in the above `explode()` for
|
||||||
// - every line that is not the last line
|
// - every line that is not the last line
|
||||||
// - if $newline is required, also add it to the last line
|
// - if $newline is required, also add it to the last line
|
||||||
if ($i < $count || $newline) {
|
// - if it's not new line, but input ending with `\PHP_EOL`
|
||||||
|
if ($i < $count || $newline || str_ends_with($input, \PHP_EOL)) {
|
||||||
$lineContent .= \PHP_EOL;
|
$lineContent .= \PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,6 +150,15 @@ class ConsoleSectionOutput extends StreamOutput
|
|||||||
return $linesAdded;
|
return $linesAdded;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
public function addNewLineOfInputSubmit()
|
||||||
|
{
|
||||||
|
$this->content[] = \PHP_EOL;
|
||||||
|
++$this->lines;
|
||||||
|
}
|
||||||
|
|
||||||
protected function doWrite(string $message, bool $newline)
|
protected function doWrite(string $message, bool $newline)
|
||||||
{
|
{
|
||||||
if (!$this->isDecorated()) {
|
if (!$this->isDecorated()) {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ use Symfony\Component\Console\Helper\TableCell;
|
|||||||
use Symfony\Component\Console\Helper\TableSeparator;
|
use Symfony\Component\Console\Helper\TableSeparator;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\ConsoleOutputInterface;
|
use Symfony\Component\Console\Output\ConsoleOutputInterface;
|
||||||
|
use Symfony\Component\Console\Output\ConsoleSectionOutput;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Output\TrimmedBufferOutput;
|
use Symfony\Component\Console\Output\TrimmedBufferOutput;
|
||||||
use Symfony\Component\Console\Question\ChoiceQuestion;
|
use Symfony\Component\Console\Question\ChoiceQuestion;
|
||||||
@@ -298,6 +299,11 @@ class SymfonyStyle extends OutputStyle
|
|||||||
$answer = $this->questionHelper->ask($this->input, $this, $question);
|
$answer = $this->questionHelper->ask($this->input, $this, $question);
|
||||||
|
|
||||||
if ($this->input->isInteractive()) {
|
if ($this->input->isInteractive()) {
|
||||||
|
if ($this->output instanceof ConsoleSectionOutput) {
|
||||||
|
// add the new line of the `return` to submit the input to ConsoleSectionOutput, because ConsoleSectionOutput is holding all it's lines.
|
||||||
|
// this is relevant when a `ConsoleSectionOutput::clear` is called.
|
||||||
|
$this->output->addNewLineOfInputSubmit();
|
||||||
|
}
|
||||||
$this->newLine();
|
$this->newLine();
|
||||||
$this->bufferedOutput->write("\n");
|
$this->bufferedOutput->write("\n");
|
||||||
}
|
}
|
||||||
|
|||||||
2
vendor/symfony/deprecation-contracts/LICENSE
vendored
2
vendor/symfony/deprecation-contracts/LICENSE
vendored
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2020-2022 Fabien Potencier
|
Copyright (c) 2020-present Fabien Potencier
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -22,5 +22,5 @@ trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use
|
|||||||
This will generate the following message:
|
This will generate the following message:
|
||||||
`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
|
`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
|
||||||
|
|
||||||
While not necessarily recommended, the deprecation notices can be completely ignored by declaring an empty
|
While not recommended, the deprecation notices can be completely ignored by declaring an empty
|
||||||
`function trigger_deprecation() {}` in your application.
|
`function trigger_deprecation() {}` in your application.
|
||||||
|
|||||||
2
vendor/symfony/service-contracts/LICENSE
vendored
2
vendor/symfony/service-contracts/LICENSE
vendored
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2018-2022 Fabien Potencier
|
Copyright (c) 2018-present Fabien Potencier
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
2
vendor/symfony/service-contracts/README.md
vendored
2
vendor/symfony/service-contracts/README.md
vendored
@@ -3,7 +3,7 @@ Symfony Service Contracts
|
|||||||
|
|
||||||
A set of abstractions extracted out of the Symfony components.
|
A set of abstractions extracted out of the Symfony components.
|
||||||
|
|
||||||
Can be used to build on semantics that the Symfony components proved useful - and
|
Can be used to build on semantics that the Symfony components proved useful and
|
||||||
that already have battle tested implementations.
|
that already have battle tested implementations.
|
||||||
|
|
||||||
See https://github.com/symfony/contracts/blob/main/README.md for more information.
|
See https://github.com/symfony/contracts/blob/main/README.md for more information.
|
||||||
|
|||||||
@@ -26,5 +26,8 @@ namespace Symfony\Contracts\Service;
|
|||||||
*/
|
*/
|
||||||
interface ResetInterface
|
interface ResetInterface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function reset();
|
public function reset();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ use Psr\Container\ContainerInterface;
|
|||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
* @author Mateusz Sip <mateusz.sip@gmail.com>
|
* @author Mateusz Sip <mateusz.sip@gmail.com>
|
||||||
*
|
*
|
||||||
* @template T of mixed
|
* @template-covariant T of mixed
|
||||||
*/
|
*/
|
||||||
interface ServiceProviderInterface extends ContainerInterface
|
interface ServiceProviderInterface extends ContainerInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,12 +66,13 @@ trait ServiceSubscriberTrait
|
|||||||
#[Required]
|
#[Required]
|
||||||
public function setContainer(ContainerInterface $container): ?ContainerInterface
|
public function setContainer(ContainerInterface $container): ?ContainerInterface
|
||||||
{
|
{
|
||||||
$this->container = $container;
|
$ret = null;
|
||||||
|
|
||||||
if (method_exists(get_parent_class(self::class) ?: '', __FUNCTION__)) {
|
if (method_exists(get_parent_class(self::class) ?: '', __FUNCTION__)) {
|
||||||
return parent::setContainer($container);
|
$ret = parent::setContainer($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
$this->container = $container;
|
||||||
|
|
||||||
|
return $ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ abstract class AbstractUnicodeString extends AbstractString
|
|||||||
private const 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";
|
private const 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";
|
||||||
|
|
||||||
// the subset of folded case mappings that is not in lower case mappings
|
// the subset of folded case mappings that is not in lower case mappings
|
||||||
private const FOLD_FROM = ['İ', 'µ', 'ſ', "\xCD\x85", 'ς', 'ϐ', 'ϑ', 'ϕ', 'ϖ', 'ϰ', 'ϱ', 'ϵ', 'ẛ', "\xE1\xBE\xBE", 'ß', 'İ', 'ʼn', 'ǰ', 'ΐ', 'ΰ', 'և', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'ẚ', 'ẞ', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ᾀ', 'ᾁ', 'ᾂ', 'ᾃ', 'ᾄ', 'ᾅ', 'ᾆ', 'ᾇ', 'ᾈ', 'ᾉ', 'ᾊ', 'ᾋ', 'ᾌ', 'ᾍ', 'ᾎ', 'ᾏ', 'ᾐ', 'ᾑ', 'ᾒ', 'ᾓ', 'ᾔ', 'ᾕ', 'ᾖ', 'ᾗ', 'ᾘ', 'ᾙ', 'ᾚ', 'ᾛ', 'ᾜ', 'ᾝ', 'ᾞ', 'ᾟ', 'ᾠ', 'ᾡ', 'ᾢ', 'ᾣ', 'ᾤ', 'ᾥ', 'ᾦ', 'ᾧ', 'ᾨ', 'ᾩ', 'ᾪ', 'ᾫ', 'ᾬ', 'ᾭ', 'ᾮ', 'ᾯ', 'ᾲ', 'ᾳ', 'ᾴ', 'ᾶ', 'ᾷ', 'ᾼ', 'ῂ', 'ῃ', 'ῄ', 'ῆ', 'ῇ', 'ῌ', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ῲ', 'ῳ', 'ῴ', 'ῶ', 'ῷ', 'ῼ', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'ſt', 'st', 'ﬓ', 'ﬔ', 'ﬕ', 'ﬖ', 'ﬗ'];
|
private const FOLD_FROM = ['İ', 'µ', 'ſ', "\xCD\x85", 'ς', 'ϐ', 'ϑ', 'ϕ', 'ϖ', 'ϰ', 'ϱ', 'ϵ', 'ẛ', "\xE1\xBE\xBE", 'ß', 'ʼn', 'ǰ', 'ΐ', 'ΰ', 'և', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'ẚ', 'ẞ', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ᾀ', 'ᾁ', 'ᾂ', 'ᾃ', 'ᾄ', 'ᾅ', 'ᾆ', 'ᾇ', 'ᾈ', 'ᾉ', 'ᾊ', 'ᾋ', 'ᾌ', 'ᾍ', 'ᾎ', 'ᾏ', 'ᾐ', 'ᾑ', 'ᾒ', 'ᾓ', 'ᾔ', 'ᾕ', 'ᾖ', 'ᾗ', 'ᾘ', 'ᾙ', 'ᾚ', 'ᾛ', 'ᾜ', 'ᾝ', 'ᾞ', 'ᾟ', 'ᾠ', 'ᾡ', 'ᾢ', 'ᾣ', 'ᾤ', 'ᾥ', 'ᾦ', 'ᾧ', 'ᾨ', 'ᾩ', 'ᾪ', 'ᾫ', 'ᾬ', 'ᾭ', 'ᾮ', 'ᾯ', 'ᾲ', 'ᾳ', 'ᾴ', 'ᾶ', 'ᾷ', 'ᾼ', 'ῂ', 'ῃ', 'ῄ', 'ῆ', 'ῇ', 'ῌ', 'ῒ', 'ῖ', 'ῗ', 'ῢ', 'ῤ', 'ῦ', 'ῧ', 'ῲ', 'ῳ', 'ῴ', 'ῶ', 'ῷ', 'ῼ', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'ſt', 'st', 'ﬓ', 'ﬔ', 'ﬕ', 'ﬖ', 'ﬗ'];
|
||||||
private const FOLD_TO = ['i̇', 'μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', 'ṡ', 'ι', 'ss', 'i̇', 'ʼn', 'ǰ', 'ΐ', 'ΰ', 'եւ', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'aʾ', 'ss', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ἀι', 'ἁι', 'ἂι', 'ἃι', 'ἄι', 'ἅι', 'ἆι', 'ἇι', 'ἀι', 'ἁι', 'ἂι', 'ἃι', 'ἄι', 'ἅι', 'ἆι', 'ἇι', 'ἠι', 'ἡι', 'ἢι', 'ἣι', 'ἤι', 'ἥι', 'ἦι', 'ἧι', 'ἠι', 'ἡι', 'ἢι', 'ἣι', 'ἤι', 'ἥι', 'ἦι', 'ἧι', 'ὠι', 'ὡι', 'ὢι', 'ὣι', 'ὤι', 'ὥι', 'ὦι', 'ὧι', 'ὠι', 'ὡι', 'ὢι', 'ὣι', 'ὤι', 'ὥι', 'ὦι', 'ὧι', 'ὰι', 'αι', 'άι', 'ᾶ', 'ᾶι', 'αι', 'ὴι', 'ηι', 'ήι', 'ῆ', 'ῆι', 'ηι', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ὼι', 'ωι', 'ώι', 'ῶ', 'ῶι', 'ωι', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'st', 'st', 'մն', 'մե', 'մի', 'վն', 'մխ'];
|
private const FOLD_TO = ['i̇', 'μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', 'ṡ', 'ι', 'ss', 'ʼn', 'ǰ', 'ΐ', 'ΰ', 'եւ', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'aʾ', 'ss', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ἀι', 'ἁι', 'ἂι', 'ἃι', 'ἄι', 'ἅι', 'ἆι', 'ἇι', 'ἀι', 'ἁι', 'ἂι', 'ἃι', 'ἄι', 'ἅι', 'ἆι', 'ἇι', 'ἠι', 'ἡι', 'ἢι', 'ἣι', 'ἤι', 'ἥι', 'ἦι', 'ἧι', 'ἠι', 'ἡι', 'ἢι', 'ἣι', 'ἤι', 'ἥι', 'ἦι', 'ἧι', 'ὠι', 'ὡι', 'ὢι', 'ὣι', 'ὤι', 'ὥι', 'ὦι', 'ὧι', 'ὠι', 'ὡι', 'ὢι', 'ὣι', 'ὤι', 'ὥι', 'ὦι', 'ὧι', 'ὰι', 'αι', 'άι', 'ᾶ', 'ᾶι', 'αι', 'ὴι', 'ηι', 'ήι', 'ῆ', 'ῆι', 'ηι', 'ῒ', 'ῖ', 'ῗ', 'ῢ', 'ῤ', 'ῦ', 'ῧ', 'ὼι', 'ωι', 'ώι', 'ῶ', 'ῶι', 'ωι', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'st', 'st', 'մն', 'մե', 'մի', 'վն', 'մխ'];
|
||||||
|
|
||||||
// the subset of upper case mappings that map one code point to many code points
|
// the subset of upper case mappings that map one code point to many code points
|
||||||
private const UPPER_FROM = ['ß', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'ſt', 'st', 'և', 'ﬓ', 'ﬔ', 'ﬕ', 'ﬖ', 'ﬗ', 'ʼn', 'ΐ', 'ΰ', 'ǰ', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'ẚ', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ᾶ', 'ῆ', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ῶ'];
|
private const UPPER_FROM = ['ß', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'ſt', 'st', 'և', 'ﬓ', 'ﬔ', 'ﬕ', 'ﬖ', 'ﬗ', 'ʼn', 'ΐ', 'ΰ', 'ǰ', 'ẖ', 'ẗ', 'ẘ', 'ẙ', 'ẚ', 'ὐ', 'ὒ', 'ὔ', 'ὖ', 'ᾶ', 'ῆ', 'ῒ', 'ΐ', 'ῖ', 'ῗ', 'ῢ', 'ΰ', 'ῤ', 'ῦ', 'ῧ', 'ῶ'];
|
||||||
|
|||||||
2
vendor/symfony/string/LICENSE
vendored
2
vendor/symfony/string/LICENSE
vendored
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2019-2023 Fabien Potencier
|
Copyright (c) 2019-present Fabien Potencier
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -11,9 +11,7 @@ $DEBUG_ALL = true;
|
|||||||
$PRINT_ALL = true;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = true;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -35,19 +33,26 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
// db config with logger
|
// db config with logger
|
||||||
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
||||||
$locale = \CoreLibs\Language\GetLocale::setLocale();
|
|
||||||
$l10n = new \CoreLibs\Language\L10n(
|
$l10n = new \CoreLibs\Language\L10n(
|
||||||
$locale['locale'],
|
SITE_LOCALE,
|
||||||
$locale['domain'],
|
SITE_DOMAIN,
|
||||||
$locale['path'],
|
BASE . INCLUDES . LOCALE,
|
||||||
|
SITE_ENCODING
|
||||||
);
|
);
|
||||||
$backend = new CoreLibs\Admin\Backend($db, $log, $session, $l10n, $locale);
|
$backend = new CoreLibs\Admin\Backend(
|
||||||
|
$db,
|
||||||
|
$log,
|
||||||
|
$session,
|
||||||
|
$l10n,
|
||||||
|
DEFAULT_ACL_LEVEL
|
||||||
|
);
|
||||||
|
use CoreLibs\Debug\Support;
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: ADMIN BACKEND';
|
$PAGE_NAME = 'TEST CLASS: ADMIN BACKEND';
|
||||||
print "<!DOCTYPE html>";
|
print "<!DOCTYPE html>";
|
||||||
@@ -57,11 +62,14 @@ print '<div><a href="class_test.php">Class Test Master</a></div>';
|
|||||||
print '<div><h1>' . $PAGE_NAME . '</h1></div>';
|
print '<div><h1>' . $PAGE_NAME . '</h1></div>';
|
||||||
|
|
||||||
// set acl, from eg login acl
|
// set acl, from eg login acl
|
||||||
print "SETACL[]: " . $backend->setACL(['EMPTY' => 'EMPTY']) . "<br>";
|
print "SETACL[]: <br>";
|
||||||
print "ADBEDITLOG: " . $backend->adbEditLog('CLASSTEST-ADMIN', 'Some info stirng') . "<br>";
|
$backend->setACL(['EMPTY' => 'EMPTY']);
|
||||||
print "ADBTOPMENU(0): " . \CoreLibs\Debug\Support::printAr($backend->adbTopMenu()) . "<br>";
|
print "ADBEDITLOG: <br>";
|
||||||
print "ADBMSG: " . $backend->adbMsg('info', 'Message: %1$d', [1]) . "<br>";
|
$backend->adbEditLog('CLASSTEST-ADMIN', 'Some info string');
|
||||||
print "Messaes: " . \CoreLibs\Debug\Support::printAr($backend->messages) . "<br>";
|
print "ADBTOPMENU(0): " . Support::printAr($backend->adbTopMenu(CONTENT_PATH)) . "<br>";
|
||||||
|
print "ADBMSG: <br>";
|
||||||
|
$backend->adbMsg('info', 'Message: %1$d', [1]);
|
||||||
|
print "Messaes: " . Support::printAr($backend->messages) . "<br>";
|
||||||
print "ADBPRINTDATETIME:<br>" . $backend->adbPrintDateTime(2021, 6, 21, 6, 38, '_test') . "<br>";
|
print "ADBPRINTDATETIME:<br>" . $backend->adbPrintDateTime(2021, 6, 21, 6, 38, '_test') . "<br>";
|
||||||
|
|
||||||
// error message
|
// error message
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -27,6 +25,7 @@ ob_end_flush();
|
|||||||
|
|
||||||
use CoreLibs\Combined\ArrayHandler;
|
use CoreLibs\Combined\ArrayHandler;
|
||||||
use CoreLibs\Debug\Support as DgS;
|
use CoreLibs\Debug\Support as DgS;
|
||||||
|
use CoreLibs\Convert\SetVarType;
|
||||||
|
|
||||||
$log = new CoreLibs\Debug\Logging([
|
$log = new CoreLibs\Debug\Logging([
|
||||||
'log_folder' => BASE . LOG,
|
'log_folder' => BASE . LOG,
|
||||||
@@ -34,9 +33,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
// $_array = new CoreLibs\Combined\ArrayHandler();
|
// $_array = new CoreLibs\Combined\ArrayHandler();
|
||||||
// $array_class = 'CoreLibs\Combination\ArrayHandler';
|
// $array_class = 'CoreLibs\Combination\ArrayHandler';
|
||||||
@@ -92,7 +91,9 @@ $array_3 = [
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
// recusrice merge
|
// recusrice merge
|
||||||
print "ARRAYMERGERECURSIVE: " . DgS::printAr(ArrayHandler::arrayMergeRecursive($array_1, $array_2, $array_3)) . "<br>";
|
print "ARRAYMERGERECURSIVE: " . DgS::printAr(SetVarType::setArray(
|
||||||
|
ArrayHandler::arrayMergeRecursive($array_1, $array_2, $array_3)
|
||||||
|
)) . "<br>";
|
||||||
// array difference
|
// array difference
|
||||||
$array_left = [
|
$array_left = [
|
||||||
'same' => 'data',
|
'same' => 'data',
|
||||||
@@ -104,7 +105,9 @@ $array_right = [
|
|||||||
];
|
];
|
||||||
print "ARRAYDIFF: " . DgS::printAr(ArrayHandler::arrayDiff($array_left, $array_right)) . "<br>";
|
print "ARRAYDIFF: " . DgS::printAr(ArrayHandler::arrayDiff($array_left, $array_right)) . "<br>";
|
||||||
// in array check
|
// in array check
|
||||||
print "INARRAYANY([1,3], [array]): " . DgS::printAr(ArrayHandler::inArrayAny([1, 3], $array_2)) . "<br>";
|
print "INARRAYANY([1,3], [array]): " . DgS::printAr(SetVarType::setArray(
|
||||||
|
ArrayHandler::inArrayAny([1, 3], $array_2)
|
||||||
|
)) . "<br>";
|
||||||
// flatten array
|
// flatten array
|
||||||
print "FLATTENARRAY: " . DgS::printAr(ArrayHandler::flattenArray($test_array)) . "<br>";
|
print "FLATTENARRAY: " . DgS::printAr(ArrayHandler::flattenArray($test_array)) . "<br>";
|
||||||
print "FLATTENARRAYKEY: " . DgS::printAr(ArrayHandler::flattenArrayKey($test_array)) . "<br>";
|
print "FLATTENARRAYKEY: " . DgS::printAr(ArrayHandler::flattenArrayKey($test_array)) . "<br>";
|
||||||
@@ -114,10 +117,10 @@ print "ARRAYFLATFORKEY: " . DgS::printAr(ArrayHandler::arrayFlatForKey($test_arr
|
|||||||
/**
|
/**
|
||||||
* attach key/value to an array so it becomes nested
|
* attach key/value to an array so it becomes nested
|
||||||
*
|
*
|
||||||
* @param string $pre Attach to new (empty for new root node)
|
* @param string $pre Attach to new (empty for new root node)
|
||||||
* @param string $cur New node
|
* @param string $cur New node
|
||||||
* @param array $node Previous created array
|
* @param array<mixed> $node Previous created array
|
||||||
* @return array Updated array
|
* @return array<mixed> Updated array
|
||||||
*/
|
*/
|
||||||
function rec(string $pre, string $cur, array $node = [])
|
function rec(string $pre, string $cur, array $node = [])
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,9 +11,7 @@ $DEBUG_ALL = true;
|
|||||||
$PRINT_ALL = true;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = true;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
// basic class test file
|
// basic class test file
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -33,9 +31,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$byte_class = 'CoreLibs\Convert\Byte';
|
$byte_class = 'CoreLibs\Convert\Byte';
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -34,9 +32,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: CHECK COLORS';
|
$PAGE_NAME = 'TEST CLASS: CHECK COLORS';
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -31,9 +29,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: CONFIG DIRECT';
|
$PAGE_NAME = 'TEST CLASS: CONFIG DIRECT';
|
||||||
@@ -47,7 +45,7 @@ print "DIR: " . DIR . "<br>";
|
|||||||
print "BASE: " . BASE . "<br>";
|
print "BASE: " . BASE . "<br>";
|
||||||
print "ROOT: " . ROOT . "<br>";
|
print "ROOT: " . ROOT . "<br>";
|
||||||
print "BASE NAME: " . BASE_NAME . "<br>";
|
print "BASE NAME: " . BASE_NAME . "<br>";
|
||||||
echo "Config path prefix: " . $CONFIG_PATH_PREFIX . "<br>";
|
echo "Config path prefix: " . ($CONFIG_PATH_PREFIX ?? '') . "<br>";
|
||||||
print "DB Name: " . DB_CONFIG_NAME . "<br>";
|
print "DB Name: " . DB_CONFIG_NAME . "<br>";
|
||||||
print "DB Config: " . \CoreLibs\Debug\Support::printAr(DB_CONFIG) . "<br>";
|
print "DB Config: " . \CoreLibs\Debug\Support::printAr(DB_CONFIG) . "<br>";
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -31,9 +29,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: CONFIG LINK';
|
$PAGE_NAME = 'TEST CLASS: CONFIG LINK';
|
||||||
@@ -47,7 +45,7 @@ print "DIR: " . DIR . "<br>";
|
|||||||
print "BASE: " . BASE . "<br>";
|
print "BASE: " . BASE . "<br>";
|
||||||
print "ROOT: " . ROOT . "<br>";
|
print "ROOT: " . ROOT . "<br>";
|
||||||
print "BASE NAME: " . BASE_NAME . "<br>";
|
print "BASE NAME: " . BASE_NAME . "<br>";
|
||||||
echo "Config path prefix: " . $CONFIG_PATH_PREFIX . "<br>";
|
echo "Config path prefix: " . ($CONFIG_PATH_PREFIX ?? '') . "<br>";
|
||||||
print "DB Name: " . DB_CONFIG_NAME . "<br>";
|
print "DB Name: " . DB_CONFIG_NAME . "<br>";
|
||||||
print "DB Config: " . \CoreLibs\Debug\Support::printAr(DB_CONFIG) . "<br>";
|
print "DB Config: " . \CoreLibs\Debug\Support::printAr(DB_CONFIG) . "<br>";
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -27,6 +25,7 @@ ob_end_flush();
|
|||||||
|
|
||||||
use CoreLibs\Convert\Colors;
|
use CoreLibs\Convert\Colors;
|
||||||
use CoreLibs\Debug\Support as DgS;
|
use CoreLibs\Debug\Support as DgS;
|
||||||
|
use CoreLibs\Convert\SetVarType;
|
||||||
|
|
||||||
$log = new CoreLibs\Debug\Logging([
|
$log = new CoreLibs\Debug\Logging([
|
||||||
'log_folder' => BASE . LOG,
|
'log_folder' => BASE . LOG,
|
||||||
@@ -34,9 +33,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$color_class = 'CoreLibs\Convert\Colors';
|
$color_class = 'CoreLibs\Convert\Colors';
|
||||||
|
|
||||||
@@ -59,24 +58,40 @@ $hsb = [210, 67, 12];
|
|||||||
$hsb_f = [210.5, 67.5, 12.5];
|
$hsb_f = [210.5, 67.5, 12.5];
|
||||||
$hsl = [210, 50, 7.8];
|
$hsl = [210, 50, 7.8];
|
||||||
print "S::COLOR rgb->hex: $rgb[0], $rgb[1], $rgb[2]: " . Colors::rgb2hex($rgb[0], $rgb[1], $rgb[2]) . "<br>";
|
print "S::COLOR rgb->hex: $rgb[0], $rgb[1], $rgb[2]: " . Colors::rgb2hex($rgb[0], $rgb[1], $rgb[2]) . "<br>";
|
||||||
print "S::COLOR hex->rgb: $hex: " . DgS::printAr(Colors::hex2rgb($hex)) . "<br>";
|
print "S::COLOR hex->rgb: $hex: " . DgS::printAr(SetVarType::setArray(
|
||||||
print "C::S/COLOR rgb->hext: $hex: " . DgS::printAr(CoreLibs\Convert\Colors::hex2rgb($hex)) . "<br>";
|
Colors::hex2rgb($hex)
|
||||||
|
)) . "<br>";
|
||||||
|
print "C::S/COLOR rgb->hext: $hex: " . DgS::printAr(SetVarType::setArray(
|
||||||
|
CoreLibs\Convert\Colors::hex2rgb($hex)
|
||||||
|
)) . "<br>";
|
||||||
// C(to hsb/hsl)
|
// C(to hsb/hsl)
|
||||||
print "S::COLOR rgb->hsb: $rgb[0], $rgb[1], $rgb[2]: "
|
print "S::COLOR rgb->hsb: $rgb[0], $rgb[1], $rgb[2]: "
|
||||||
. DgS::printAr(Colors::rgb2hsb($rgb[0], $rgb[1], $rgb[2])) . "<br>";
|
. DgS::printAr(SetVarType::setArray(
|
||||||
|
Colors::rgb2hsb($rgb[0], $rgb[1], $rgb[2])
|
||||||
|
)) . "<br>";
|
||||||
print "S::COLOR rgb->hsl: $rgb[0], $rgb[1], $rgb[2]: "
|
print "S::COLOR rgb->hsl: $rgb[0], $rgb[1], $rgb[2]: "
|
||||||
. DgS::printAr(Colors::rgb2hsl($rgb[0], $rgb[1], $rgb[2])) . "<br>";
|
. DgS::printAr(SetVarType::setArray(
|
||||||
|
Colors::rgb2hsl($rgb[0], $rgb[1], $rgb[2])
|
||||||
|
)) . "<br>";
|
||||||
// D(from hsb/hsl) Note that param 2 + 3 is always 0-100 divided
|
// D(from hsb/hsl) Note that param 2 + 3 is always 0-100 divided
|
||||||
print "S::COLOR hsb->rgb: $hsb[0], $hsb[1], $hsb[2]: "
|
print "S::COLOR hsb->rgb: $hsb[0], $hsb[1], $hsb[2]: "
|
||||||
. DgS::printAr(Colors::hsb2rgb($hsb[0], $hsb[1], $hsb[2])) . "<br>";
|
. DgS::printAr(SetVarType::setArray(
|
||||||
print "S::COLOR hsb_f->rgb: $hsb_f[0], $hsb_f[1], $hsb_f[2]: "
|
Colors::hsb2rgb($hsb[0], $hsb[1], $hsb[2])
|
||||||
. DgS::printAr(Colors::hsb2rgb($hsb_f[0], $hsb_f[1], $hsb_f[2])) . "<br>";
|
)) . "<br>";
|
||||||
|
print "S::COLOR hsb_f->rgb: $hsb_f[0], $hsb_f[1], $hsb_f[2]: "
|
||||||
|
. DgS::printAr(SetVarType::setArray(
|
||||||
|
Colors::hsb2rgb($hsb_f[0], $hsb_f[1], $hsb_f[2])
|
||||||
|
)) . "<br>";
|
||||||
print "S::COLOR hsl->rgb: $hsl[0], $hsl[1], $hsl[2]: "
|
print "S::COLOR hsl->rgb: $hsl[0], $hsl[1], $hsl[2]: "
|
||||||
. DgS::printAr(Colors::hsl2rgb($hsl[0], $hsl[1], $hsl[2])) . "<br>";
|
. DgS::printAr(SetVarType::setArray(
|
||||||
|
Colors::hsl2rgb($hsl[0], $hsl[1], $hsl[2])
|
||||||
|
)) . "<br>";
|
||||||
|
|
||||||
$hsb = [0, 0, 5];
|
$hsb = [0, 0, 5];
|
||||||
print "S::COLOR hsb->rgb: $hsb[0], $hsb[1], $hsb[2]: "
|
print "S::COLOR hsb->rgb: $hsb[0], $hsb[1], $hsb[2]: "
|
||||||
. DgS::printAr(Colors::hsb2rgb($hsb[0], $hsb[1], $hsb[2])) . "<br>";
|
. DgS::printAr(SetVarType::setArray(
|
||||||
|
Colors::hsb2rgb($hsb[0], $hsb[1], $hsb[2])
|
||||||
|
)) . "<br>";
|
||||||
|
|
||||||
// Random text
|
// Random text
|
||||||
$h = rand(0, 359);
|
$h = rand(0, 359);
|
||||||
@@ -84,8 +99,8 @@ $s = rand(15, 70);
|
|||||||
$b = 100;
|
$b = 100;
|
||||||
$l = 50;
|
$l = 50;
|
||||||
print "RANDOM IN: H: " . $h . ", S: " . $s . ", B/L: " . $b . "/" . $l . "<br>";
|
print "RANDOM IN: H: " . $h . ", S: " . $s . ", B/L: " . $b . "/" . $l . "<br>";
|
||||||
print "RANDOM hsb->rgb: <pre>" . DgS::printAr(Colors::hsb2rgb($h, $s, $b)) . "</pre><br>";
|
print "RANDOM hsb->rgb: <pre>" . DgS::printAr(SetVarType::setArray(Colors::hsb2rgb($h, $s, $b))) . "</pre><br>";
|
||||||
print "RANDOM hsl->rgb: <pre>" . DgS::printAr(Colors::hsl2rgb($h, $s, $l)) . "</pre><br>";
|
print "RANDOM hsl->rgb: <pre>" . DgS::printAr(SetVarType::setArray(Colors::hsl2rgb($h, $s, $l))) . "</pre><br>";
|
||||||
|
|
||||||
// TODO: run compare check input must match output
|
// TODO: run compare check input must match output
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,7 @@ $PRINT_ALL = true;
|
|||||||
$ECHO_ALL = true;
|
$ECHO_ALL = true;
|
||||||
$DB_DEBUG = true;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -34,9 +32,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$datetime_class = 'CoreLibs\Combined\DateTime';
|
$datetime_class = 'CoreLibs\Combined\DateTime';
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ ob_end_flush();
|
|||||||
|
|
||||||
use CoreLibs\Debug\Support;
|
use CoreLibs\Debug\Support;
|
||||||
use CoreLibs\Debug\RunningTime;
|
use CoreLibs\Debug\RunningTime;
|
||||||
|
use CoreLibs\Convert\SetVarType;
|
||||||
|
|
||||||
$log = new CoreLibs\Debug\Logging([
|
$log = new CoreLibs\Debug\Logging([
|
||||||
'log_folder' => BASE . LOG,
|
'log_folder' => BASE . LOG,
|
||||||
@@ -30,9 +31,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL ?? true,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL ?? true,
|
||||||
]);
|
]);
|
||||||
// db connection and attach logger
|
// db connection and attach logger
|
||||||
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
||||||
@@ -78,7 +79,9 @@ for ($i = 1; $i <= 6; $i++) {
|
|||||||
(is_array($res) ?
|
(is_array($res) ?
|
||||||
"Array: " . $db->log->prBl(is_array($res)) : '{-}')
|
"Array: " . $db->log->prBl(is_array($res)) : '{-}')
|
||||||
) . ", "
|
) . ", "
|
||||||
. "cursor_ext: <pre>" . Support::printAr($db->dbGetCursorExt($q_db_ret)) . "</pre>";
|
. "cursor_ext: <pre>" . Support::printAr(
|
||||||
|
SetVarType::setArray($db->dbGetCursorExt($q_db_ret))
|
||||||
|
) . "</pre>";
|
||||||
print "Run time: " . RunningTime::hrRunningTime() . "<br>";
|
print "Run time: " . RunningTime::hrRunningTime() . "<br>";
|
||||||
}
|
}
|
||||||
// reset all read data
|
// reset all read data
|
||||||
@@ -95,7 +98,9 @@ for ($i = 1; $i <= 6; $i++) {
|
|||||||
(is_array($res) ?
|
(is_array($res) ?
|
||||||
"Array: " . $db->log->prBl(is_array($res)) : '{-}')
|
"Array: " . $db->log->prBl(is_array($res)) : '{-}')
|
||||||
) . ", "
|
) . ", "
|
||||||
. "cursor_ext: <pre>" . Support::printAr($db->dbGetCursorExt($q_db_ret)) . "</pre>";
|
. "cursor_ext: <pre>" . Support::printAr(
|
||||||
|
SetVarType::setArray($db->dbGetCursorExt($q_db_ret))
|
||||||
|
) . "</pre>";
|
||||||
print "Run time: " . RunningTime::hrRunningTime() . "<br>";
|
print "Run time: " . RunningTime::hrRunningTime() . "<br>";
|
||||||
}
|
}
|
||||||
// reset all read data
|
// reset all read data
|
||||||
@@ -112,7 +117,9 @@ for ($i = 1; $i <= 6; $i++) {
|
|||||||
(is_array($res) ?
|
(is_array($res) ?
|
||||||
"Array: " . $db->log->prBl(is_array($res)) : '{-}')
|
"Array: " . $db->log->prBl(is_array($res)) : '{-}')
|
||||||
) . ", "
|
) . ", "
|
||||||
. "cursor_ext: <pre>" . Support::printAr($db->dbGetCursorExt($q_db_ret)) . "</pre>";
|
. "cursor_ext: <pre>" . Support::printAr(
|
||||||
|
SetVarType::setArray($db->dbGetCursorExt($q_db_ret))
|
||||||
|
) . "</pre>";
|
||||||
print "Run time: " . RunningTime::hrRunningTime() . "<br>";
|
print "Run time: " . RunningTime::hrRunningTime() . "<br>";
|
||||||
}
|
}
|
||||||
// reset all read data
|
// reset all read data
|
||||||
@@ -129,7 +136,9 @@ for ($i = 1; $i <= 6; $i++) {
|
|||||||
(is_array($res) ?
|
(is_array($res) ?
|
||||||
"Array: " . $db->log->prBl(is_array($res)) : '{-}')
|
"Array: " . $db->log->prBl(is_array($res)) : '{-}')
|
||||||
) . ", "
|
) . ", "
|
||||||
. "cursor_ext: <pre>" . Support::printAr($db->dbGetCursorExt($q_db_ret)) . "</pre>";
|
. "cursor_ext: <pre>" . Support::printAr(
|
||||||
|
SetVarType::setArray($db->dbGetCursorExt($q_db_ret))
|
||||||
|
) . "</pre>";
|
||||||
print "Run time: " . RunningTime::hrRunningTime() . "<br>";
|
print "Run time: " . RunningTime::hrRunningTime() . "<br>";
|
||||||
}
|
}
|
||||||
// reset all data
|
// reset all data
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ ob_end_flush();
|
|||||||
use CoreLibs\Debug\Support as DgS;
|
use CoreLibs\Debug\Support as DgS;
|
||||||
use CoreLibs\DB\IO as DbIo;
|
use CoreLibs\DB\IO as DbIo;
|
||||||
use CoreLibs\Debug\Support;
|
use CoreLibs\Debug\Support;
|
||||||
|
use CoreLibs\Convert\SetVarType;
|
||||||
|
|
||||||
$log = new CoreLibs\Debug\Logging([
|
$log = new CoreLibs\Debug\Logging([
|
||||||
'log_folder' => BASE . LOG,
|
'log_folder' => BASE . LOG,
|
||||||
@@ -31,9 +32,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL ?? true,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL ?? true,
|
||||||
]);
|
]);
|
||||||
// db connection and attach logger
|
// db connection and attach logger
|
||||||
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
||||||
@@ -62,7 +63,11 @@ print "VERSION LONG DB: " . $db->dbVersionInfo('server', false) . "<br>";
|
|||||||
print "VERSION NUMERIC DB: " . $db->dbVersionNumeric() . "<br>";
|
print "VERSION NUMERIC DB: " . $db->dbVersionNumeric() . "<br>";
|
||||||
print "SERVER ENCODING: " . $db->dbVersionInfo('server_encoding') . "<br>";
|
print "SERVER ENCODING: " . $db->dbVersionInfo('server_encoding') . "<br>";
|
||||||
print "ALL PG VERSION PARAMETERS: <pre>" . print_r($db->dbVersionInfoParameters(), true) . "</pre><br>";
|
print "ALL PG VERSION PARAMETERS: <pre>" . print_r($db->dbVersionInfoParameters(), true) . "</pre><br>";
|
||||||
print "ALL OUTPUT [TEST]: <pre>" . print_r(pg_version($db->dbGetDbh()), true) . "</pre><br>";
|
if (($dbh = $db->dbGetDbh()) instanceof \PgSql\Connection) {
|
||||||
|
print "ALL OUTPUT [TEST]: <pre>" . print_r(pg_version($dbh), true) . "</pre><br>";
|
||||||
|
} else {
|
||||||
|
print "NO DB HANDLER<br>";
|
||||||
|
}
|
||||||
print "DB Version smaller $to_db_version: " . $db->dbCompareVersion('<' . $to_db_version) . "<br>";
|
print "DB Version smaller $to_db_version: " . $db->dbCompareVersion('<' . $to_db_version) . "<br>";
|
||||||
print "DB Version smaller than $to_db_version: " . $db->dbCompareVersion('<=' . $to_db_version) . "<br>";
|
print "DB Version smaller than $to_db_version: " . $db->dbCompareVersion('<=' . $to_db_version) . "<br>";
|
||||||
print "DB Version equal $to_db_version: " . $db->dbCompareVersion('=' . $to_db_version) . "<br>";
|
print "DB Version equal $to_db_version: " . $db->dbCompareVersion('=' . $to_db_version) . "<br>";
|
||||||
@@ -108,7 +113,11 @@ print "<br>";
|
|||||||
|
|
||||||
print "<pre>";
|
print "<pre>";
|
||||||
|
|
||||||
print "SOCKET: " . pg_socket($db->dbGetDbh()) . "<br>";
|
if (($dbh = $db->dbGetDbh()) instanceof \PgSql\Connection) {
|
||||||
|
print "SOCKET: " . pg_socket($dbh) . "<br>";
|
||||||
|
} else {
|
||||||
|
print "NO SOCKET<br>";
|
||||||
|
}
|
||||||
|
|
||||||
// truncate test_foo table before testing
|
// truncate test_foo table before testing
|
||||||
print "<b>TRUNCATE test_foo</b><br>";
|
print "<b>TRUNCATE test_foo</b><br>";
|
||||||
@@ -123,7 +132,7 @@ $status = $db->dbExec("INSERT INTO test_foo (test, number_a) VALUES "
|
|||||||
print "DIRECT INSERT STATUS: " . Support::printToString($status) . " |<br>"
|
print "DIRECT INSERT STATUS: " . Support::printToString($status) . " |<br>"
|
||||||
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
||||||
. "DB OBJECT: <pre>" . print_r($status, true) . "</pre>| "
|
. "DB OBJECT: <pre>" . print_r($status, true) . "</pre>| "
|
||||||
. "PRIMARY KEY: " . $db->dbGetInsertPK() . " | "
|
. "PRIMARY KEY: " . Support::printToString($db->dbGetInsertPK()) . " | "
|
||||||
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
||||||
. "RETURNING EXT[test]: " . print_r($db->dbGetReturningExt('test'), true) . " | "
|
. "RETURNING EXT[test]: " . print_r($db->dbGetReturningExt('test'), true) . " | "
|
||||||
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
||||||
@@ -144,7 +153,7 @@ $status = $db->dbExec($query);
|
|||||||
print "EOM STRING DIRECT INSERT STATUS: " . Support::printToString($status) . " |<br>"
|
print "EOM STRING DIRECT INSERT STATUS: " . Support::printToString($status) . " |<br>"
|
||||||
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
||||||
. "DB OBJECT: <pre>" . print_r($status, true) . "</pre>| "
|
. "DB OBJECT: <pre>" . print_r($status, true) . "</pre>| "
|
||||||
. "PRIMARY KEY: " . $db->dbGetInsertPK() . " | "
|
. "PRIMARY KEY: " . Support::printToString($db->dbGetInsertPK()) . " | "
|
||||||
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
||||||
. "RETURNING EXT[test]: " . print_r($db->dbGetReturningExt('test'), true) . " | "
|
. "RETURNING EXT[test]: " . print_r($db->dbGetReturningExt('test'), true) . " | "
|
||||||
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
||||||
@@ -156,12 +165,13 @@ var_dump($db->dbGetReturningExt());
|
|||||||
$last_insert_pk = $db->dbGetInsertPK();
|
$last_insert_pk = $db->dbGetInsertPK();
|
||||||
print "DIRECT INSERT PREVIOUS INSERTED: "
|
print "DIRECT INSERT PREVIOUS INSERTED: "
|
||||||
. print_r($db->dbReturnRow("SELECT test_foo_id, test FROM test_foo "
|
. print_r($db->dbReturnRow("SELECT test_foo_id, test FROM test_foo "
|
||||||
. "WHERE test_foo_id = " . $last_insert_pk), true) . "<br>";
|
. "WHERE test_foo_id = " . (int)$last_insert_pk), true) . "<br>";
|
||||||
|
$__last_insert_pk = (int)$last_insert_pk;
|
||||||
$q = <<<EOM
|
$q = <<<EOM
|
||||||
SELECT
|
SELECT
|
||||||
test_foo_id, test
|
test_foo_id, test
|
||||||
FROM test_foo
|
FROM test_foo
|
||||||
WHERE test_foo_id = $last_insert_pk;
|
WHERE test_foo_id = $__last_insert_pk;
|
||||||
EOM;
|
EOM;
|
||||||
print "EOM READ OF PREVIOUS INSERTED: " . print_r($db->dbReturnRow($q), true) . "<br>";
|
print "EOM READ OF PREVIOUS INSERTED: " . print_r($db->dbReturnRow($q), true) . "<br>";
|
||||||
print "LAST ERROR: " . $db->dbGetLastError() . "<br>";
|
print "LAST ERROR: " . $db->dbGetLastError() . "<br>";
|
||||||
@@ -172,13 +182,13 @@ $db->dbPrepare("ins_test_foo", "INSERT INTO test_foo (test) VALUES ($1) RETURNIN
|
|||||||
$status = $db->dbExecute("ins_test_foo", ['BAR TEST ' . time()]);
|
$status = $db->dbExecute("ins_test_foo", ['BAR TEST ' . time()]);
|
||||||
print "PREPARE INSERT[ins_test_foo] STATUS: " . Support::printToString($status) . " |<br>"
|
print "PREPARE INSERT[ins_test_foo] STATUS: " . Support::printToString($status) . " |<br>"
|
||||||
. "QUERY: " . $db->dbGetPrepareCursorValue('ins_test_foo', 'query') . " |<br>"
|
. "QUERY: " . $db->dbGetPrepareCursorValue('ins_test_foo', 'query') . " |<br>"
|
||||||
. "PRIMARY KEY: " . $db->dbGetInsertPK() . " | "
|
. "PRIMARY KEY: " . Support::printToString($db->dbGetInsertPK()) . " | "
|
||||||
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
||||||
. "RETURNING RETURN: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
. "RETURNING RETURN: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
||||||
|
|
||||||
print "PREPARE INSERT PREVIOUS INSERTED: "
|
print "PREPARE INSERT PREVIOUS INSERTED: "
|
||||||
. print_r($db->dbReturnRow("SELECT test_foo_id, test FROM test_foo "
|
. print_r($db->dbReturnRow("SELECT test_foo_id, test FROM test_foo "
|
||||||
. "WHERE test_foo_id = " . $db->dbGetInsertPK()), true) . "<br>";
|
. "WHERE test_foo_id = " . (int)$db->dbGetInsertPK()), true) . "<br>";
|
||||||
|
|
||||||
print "PREPARE CURSOR RETURN:<br>";
|
print "PREPARE CURSOR RETURN:<br>";
|
||||||
foreach (['pk_name', 'count', 'query', 'returning_id'] as $key) {
|
foreach (['pk_name', 'count', 'query', 'returning_id'] as $key) {
|
||||||
@@ -197,7 +207,7 @@ $db->dbPrepare("ins_test_foo_eom", $query);
|
|||||||
$status = $db->dbExecute("ins_test_foo_eom", ['EOM BAR TEST ' . time()]);
|
$status = $db->dbExecute("ins_test_foo_eom", ['EOM BAR TEST ' . time()]);
|
||||||
print "EOM STRING PREPARE INSERT[ins_test_foo_eom] STATUS: " . Support::printToString($status) . " |<br>"
|
print "EOM STRING PREPARE INSERT[ins_test_foo_eom] STATUS: " . Support::printToString($status) . " |<br>"
|
||||||
. "QUERY: " . $db->dbGetPrepareCursorValue('ins_test_foo_eom', 'query') . " |<br>"
|
. "QUERY: " . $db->dbGetPrepareCursorValue('ins_test_foo_eom', 'query') . " |<br>"
|
||||||
. "PRIMARY KEY: " . $db->dbGetInsertPK() . " | "
|
. "PRIMARY KEY: " . Support::printToString($db->dbGetInsertPK()) . " | "
|
||||||
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
||||||
. "RETURNING RETURN: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
. "RETURNING RETURN: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
||||||
|
|
||||||
@@ -247,21 +257,21 @@ print "EOM STRING DIRECT MULTIPLE INSERT WITH RETURN STATUS: " . Support::printT
|
|||||||
$status = $db->dbExec("INSERT INTO test_foo (test) VALUES ('FOO; TEST " . time() . "')");
|
$status = $db->dbExec("INSERT INTO test_foo (test) VALUES ('FOO; TEST " . time() . "')");
|
||||||
print "DIRECT INSERT NO RETURN STATUS: " . Support::printToString($status) . " |<br>"
|
print "DIRECT INSERT NO RETURN STATUS: " . Support::printToString($status) . " |<br>"
|
||||||
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
||||||
. "PRIMARY KEY: " . $db->dbGetInsertPK() . " | "
|
. "PRIMARY KEY: " . Support::printToString($db->dbGetInsertPK()) . " | "
|
||||||
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
||||||
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
||||||
$last_insert_pk = $db->dbGetInsertPK();
|
$last_insert_pk = $db->dbGetInsertPK();
|
||||||
|
|
||||||
// is_array read test
|
// is_array read test
|
||||||
$q = "SELECT test_foo_id, test FROM test_foo WHERE test_foo_id = " . $last_insert_pk;
|
$q = "SELECT test_foo_id, test FROM test_foo WHERE test_foo_id = " . (int)$last_insert_pk;
|
||||||
if (is_array($s_res = $db->dbReturnRow($q)) && !empty($s_res['test'])) {
|
if (is_array($s_res = $db->dbReturnRow($q)) && !empty($s_res['test'])) {
|
||||||
print "WE HAVE DATA FOR: " . $last_insert_pk . " WITH: " . $s_res['test'] . "<br>";
|
print "WE HAVE DATA FOR: " . Support::printToString($last_insert_pk) . " WITH: " . $s_res['test'] . "<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// UPDATE WITH RETURNING
|
// UPDATE WITH RETURNING
|
||||||
$status = $db->dbExec("UPDATE test_foo SET test = 'SOMETHING DIFFERENT' "
|
$status = $db->dbExec("UPDATE test_foo SET test = 'SOMETHING DIFFERENT' "
|
||||||
. "WHERE test_foo_id = " . $last_insert_pk . " RETURNING test");
|
. "WHERE test_foo_id = " . (int)$last_insert_pk . " RETURNING test");
|
||||||
print "UPDATE WITH PK " . $last_insert_pk
|
print "UPDATE WITH PK " . Support::printToString($last_insert_pk)
|
||||||
. " RETURN STATUS: " . Support::printToString($status) . " |<br>"
|
. " RETURN STATUS: " . Support::printToString($status) . " |<br>"
|
||||||
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
||||||
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
||||||
@@ -271,14 +281,14 @@ print "UPDATE WITH PK " . $last_insert_pk
|
|||||||
$status = $db->dbExec("INSERT INTO test_foobar (type, integer) VALUES ('WITHOUT DATA', 456)");
|
$status = $db->dbExec("INSERT INTO test_foobar (type, integer) VALUES ('WITHOUT DATA', 456)");
|
||||||
print "INSERT WITH NO PRIMARY KEY NO RETURNING STATUS: " . Support::printToString($status) . " |<br>"
|
print "INSERT WITH NO PRIMARY KEY NO RETURNING STATUS: " . Support::printToString($status) . " |<br>"
|
||||||
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
||||||
. "PRIMARY KEY: " . $db->dbGetInsertPK() . " | "
|
. "PRIMARY KEY: " . Support::printToString($db->dbGetInsertPK()) . " | "
|
||||||
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
||||||
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
||||||
|
|
||||||
$status = $db->dbExec("INSERT INTO test_foobar (type, integer) VALUES ('WITH DATA', 123) RETURNING type, integer");
|
$status = $db->dbExec("INSERT INTO test_foobar (type, integer) VALUES ('WITH DATA', 123) RETURNING type, integer");
|
||||||
print "INSERT WITH NO PRIMARY KEY WITH RETURNING STATUS: " . Support::printToString($status) . " |<br>"
|
print "INSERT WITH NO PRIMARY KEY WITH RETURNING STATUS: " . Support::printToString($status) . " |<br>"
|
||||||
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
. "QUERY: " . $db->dbGetQuery() . " |<br>"
|
||||||
. "PRIMARY KEY: " . $db->dbGetInsertPK() . " | "
|
. "PRIMARY KEY: " . Support::printToString($db->dbGetInsertPK()) . " | "
|
||||||
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
. "RETURNING EXT: " . print_r($db->dbGetReturningExt(), true) . " | "
|
||||||
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
. "RETURNING ARRAY: " . print_r($db->dbGetReturningArray(), true) . "<br>";
|
||||||
|
|
||||||
@@ -331,7 +341,7 @@ echo "<hr>";
|
|||||||
|
|
||||||
// NOTE: try to replacate connection still exists if script is run a second time
|
// NOTE: try to replacate connection still exists if script is run a second time
|
||||||
// open pg bouncer connection
|
// open pg bouncer connection
|
||||||
$db_pgb = new CoreLibs\DB\IO($DB_CONFIG['test_pgbouncer'], $log);
|
$db_pgb = new CoreLibs\DB\IO($DB_CONFIG['test_pgbouncer'] ?? [], $log);
|
||||||
print "[PGB] DBINFO: " . $db_pgb->dbInfo() . "<br>";
|
print "[PGB] DBINFO: " . $db_pgb->dbInfo() . "<br>";
|
||||||
if ($db->dbPrepare('pgb_sel_test_foo', $q_prep) === false) {
|
if ($db->dbPrepare('pgb_sel_test_foo', $q_prep) === false) {
|
||||||
print "[PGB] [1] Error in pgb_sel_test_foo prepare<br>";
|
print "[PGB] [1] Error in pgb_sel_test_foo prepare<br>";
|
||||||
@@ -348,7 +358,9 @@ $db_pgb->dbClose();
|
|||||||
|
|
||||||
# db write class test
|
# db write class test
|
||||||
$table = 'test_foo';
|
$table = 'test_foo';
|
||||||
print "TABLE META DATA: " . DgS::printAr($db->dbShowTableMetaData($table)) . "<br>";
|
print "TABLE META DATA: " . DgS::printAr(SetVarType::setArray(
|
||||||
|
$db->dbShowTableMetaData($table)
|
||||||
|
)) . "<br>";
|
||||||
// insert first, then use primary key to update
|
// insert first, then use primary key to update
|
||||||
$primary_key = ''; # unset
|
$primary_key = ''; # unset
|
||||||
$db_write_table = ['test', 'string_a', 'number_a', 'some_bool'];
|
$db_write_table = ['test', 'string_a', 'number_a', 'some_bool'];
|
||||||
@@ -371,7 +383,7 @@ $data = [
|
|||||||
];
|
];
|
||||||
$primary_key = $db->dbWriteDataExt(
|
$primary_key = $db->dbWriteDataExt(
|
||||||
$db_write_table,
|
$db_write_table,
|
||||||
$primary_key,
|
(int)$primary_key,
|
||||||
$table,
|
$table,
|
||||||
$object_fields_not_touch,
|
$object_fields_not_touch,
|
||||||
$object_fields_not_update,
|
$object_fields_not_update,
|
||||||
@@ -383,7 +395,7 @@ $data = [
|
|||||||
];
|
];
|
||||||
$primary_key = $db->dbWriteDataExt(
|
$primary_key = $db->dbWriteDataExt(
|
||||||
$db_write_table,
|
$db_write_table,
|
||||||
$primary_key,
|
(int)$primary_key,
|
||||||
$table,
|
$table,
|
||||||
$object_fields_not_touch,
|
$object_fields_not_touch,
|
||||||
$object_fields_not_update,
|
$object_fields_not_update,
|
||||||
@@ -395,7 +407,7 @@ $data = [
|
|||||||
];
|
];
|
||||||
$primary_key = $db->dbWriteDataExt(
|
$primary_key = $db->dbWriteDataExt(
|
||||||
$db_write_table,
|
$db_write_table,
|
||||||
$primary_key,
|
(int)$primary_key,
|
||||||
$table,
|
$table,
|
||||||
$object_fields_not_touch,
|
$object_fields_not_touch,
|
||||||
$object_fields_not_update,
|
$object_fields_not_update,
|
||||||
@@ -500,24 +512,24 @@ while (($ret = $db->dbCheckAsync()) === true)
|
|||||||
// search path check
|
// search path check
|
||||||
$q = "SHOW search_path";
|
$q = "SHOW search_path";
|
||||||
$cursor = $db->dbExec($q);
|
$cursor = $db->dbExec($q);
|
||||||
$data = $db->dbFetchArray($cursor)['search_path'];
|
$data = $db->dbFetchArray($cursor)['search_path'] ?? '';
|
||||||
print "RETURN DATA FOR search_path: " . $data . "<br>";
|
print "RETURN DATA FOR search_path: " . $data . "<br>";
|
||||||
// print "RETURN DATA FOR search_path: " . DgS::printAr($data) . "<br>";
|
// print "RETURN DATA FOR search_path: " . DgS::printAr($data) . "<br>";
|
||||||
// insert something into test.schema_test and see if we get the PK back
|
// insert something into test.schema_test and see if we get the PK back
|
||||||
$status = $db->dbExec(
|
$status = $db->dbExec(
|
||||||
"INSERT INTO test.schema_test (contents, id) VALUES "
|
"INSERT INTO test.schema_test (contents, id) VALUES "
|
||||||
. "('TIME: " . time() . "', " . rand(1, 10) . ")"
|
. "('TIME: " . (string)time() . "', " . (string)rand(1, 10) . ")"
|
||||||
);
|
);
|
||||||
print "OTHER SCHEMA INSERT STATUS: "
|
print "OTHER SCHEMA INSERT STATUS: "
|
||||||
. Support::printToString($status)
|
. Support::printToString($status)
|
||||||
. " | PK NAME: " . $db->dbGetInsertPKName()
|
. " | PK NAME: " . $db->dbGetInsertPKName()
|
||||||
. ", PRIMARY KEY: " . $db->dbGetInsertPK() . "<br>";
|
. ", PRIMARY KEY: " . Support::printToString($db->dbGetInsertPK()) . "<br>";
|
||||||
|
|
||||||
print "<b>NULL TEST DB READ</b><br>";
|
print "<b>NULL TEST DB READ</b><br>";
|
||||||
$q = "SELECT uid, null_varchar, null_int FROM test_null_data WHERE uid = 'A'";
|
$q = "SELECT uid, null_varchar, null_int FROM test_null_data WHERE uid = 'A'";
|
||||||
$res = $db->dbReturnRow($q);
|
$res = $db->dbReturnRow($q);
|
||||||
var_dump($res);
|
var_dump($res);
|
||||||
print "RES: " . DgS::printAr($res) . "<br>";
|
print "RES: " . DgS::printAr(SetVarType::setArray($res)) . "<br>";
|
||||||
print "ISSET: " . isset($res['null_varchar']) . "<br>";
|
print "ISSET: " . isset($res['null_varchar']) . "<br>";
|
||||||
print "EMPTY: " . empty($res['null_varchar']) . "<br>";
|
print "EMPTY: " . empty($res['null_varchar']) . "<br>";
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,7 @@ $PRINT_ALL = false;
|
|||||||
$ECHO_ALL = true;
|
$ECHO_ALL = true;
|
||||||
$DB_DEBUG = true;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -51,12 +49,22 @@ print "<body>";
|
|||||||
print '<div><a href="class_test.php">Class Test Master</a></div>';
|
print '<div><a href="class_test.php">Class Test Master</a></div>';
|
||||||
print '<div><h1>' . $PAGE_NAME . '</h1></div>';
|
print '<div><h1>' . $PAGE_NAME . '</h1></div>';
|
||||||
|
|
||||||
function test()
|
/**
|
||||||
|
* Undocumented function
|
||||||
|
*
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
function test(): ?string
|
||||||
{
|
{
|
||||||
return DebugSupport::getCallerMethod(1);
|
return DebugSupport::getCallerMethod(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function test2()
|
/**
|
||||||
|
* Undocumented function
|
||||||
|
*
|
||||||
|
* @return array<mixed>
|
||||||
|
*/
|
||||||
|
function test2(): array
|
||||||
{
|
{
|
||||||
return DebugSupport::getCallerMethodList(1);
|
return DebugSupport::getCallerMethodList(1);
|
||||||
}
|
}
|
||||||
@@ -108,19 +116,28 @@ $new_log = new CoreLibs\Debug\Logging([
|
|||||||
$new_log->debug('OPTIONS TYPE', 'New Type error');
|
$new_log->debug('OPTIONS TYPE', 'New Type error');
|
||||||
print "OPTIONS LOGGER:<br>" . $new_log->printErrorMsg();
|
print "OPTIONS LOGGER:<br>" . $new_log->printErrorMsg();
|
||||||
$new_log->setLogLevel('debug', 'on', ['A', 'B', 'C' => false]);
|
$new_log->setLogLevel('debug', 'on', ['A', 'B', 'C' => false]);
|
||||||
print "LOG LEVEL: " . DebugSupport::printAr($new_log->getLogLevel('debug', 'on')) . "<br>";
|
print "LOG LEVEL: " . DebugSupport::printAr(\CoreLibs\Convert\SetVarType::setArray(
|
||||||
|
$new_log->getLogLevel('debug', 'on')
|
||||||
|
)) . "<br>";
|
||||||
|
|
||||||
echo "<b>CLASS DEBUG CALL</b><br>";
|
echo "<b>CLASS DEBUG CALL</b><br>";
|
||||||
|
|
||||||
// @codingStandardsIgnoreLine
|
// @codingStandardsIgnoreLine
|
||||||
class TestL
|
class TestL
|
||||||
{
|
{
|
||||||
|
/** @var \CoreLibs\Debug\Logging */
|
||||||
public $log;
|
public $log;
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->log = new CoreLibs\Debug\Logging();
|
$this->log = new CoreLibs\Debug\Logging();
|
||||||
}
|
}
|
||||||
public function test(string $ts = null)
|
/**
|
||||||
|
* Undocumented function
|
||||||
|
*
|
||||||
|
* @param string|null $ts
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function test(?string $ts = null): bool
|
||||||
{
|
{
|
||||||
print "* GETCALLERCLASS(INSIDE CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "<br>";
|
print "* GETCALLERCLASS(INSIDE CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "<br>";
|
||||||
$this->log->debug('TESTL', 'Logging in class testL' . ($ts !== null ? ': ' . $ts : ''));
|
$this->log->debug('TESTL', 'Logging in class testL' . ($ts !== null ? ': ' . $ts : ''));
|
||||||
@@ -131,12 +148,18 @@ class TestL
|
|||||||
// @codingStandardsIgnoreLine
|
// @codingStandardsIgnoreLine
|
||||||
class TestR extends TestL
|
class TestR extends TestL
|
||||||
{
|
{
|
||||||
|
/** @var string */
|
||||||
public $foo;
|
public $foo;
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
public function subTest()
|
/**
|
||||||
|
* Undocumented function
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function subTest(): bool
|
||||||
{
|
{
|
||||||
print "** GETCALLERCLASS(INSIDE EXTND CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "<br>";
|
print "** GETCALLERCLASS(INSIDE EXTND CLASS): " . \CoreLibs\Debug\Support::getCallerClass() . "<br>";
|
||||||
$this->log->debug('TESTR', 'Logging in class testR (extends testL)');
|
$this->log->debug('TESTR', 'Logging in class testR (extends testL)');
|
||||||
@@ -160,12 +183,18 @@ print "CLASS EXTEND: PRINTERRORMSG: <br>" . $tr->log->printErrorMsg() . "<br>";
|
|||||||
// @codingStandardsIgnoreLine
|
// @codingStandardsIgnoreLine
|
||||||
class AttachOutside
|
class AttachOutside
|
||||||
{
|
{
|
||||||
|
/** @var \CoreLibs\Debug\Logging */
|
||||||
public $log;
|
public $log;
|
||||||
public function __construct(object $logger_class)
|
public function __construct(\CoreLibs\Debug\Logging $logger_class)
|
||||||
{
|
{
|
||||||
$this->log = $logger_class;
|
$this->log = $logger_class;
|
||||||
}
|
}
|
||||||
public function test()
|
/**
|
||||||
|
* Undocumented function
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function test(): string
|
||||||
{
|
{
|
||||||
$this->log->debug('ATTACHOUTSIDE', 'A test');
|
$this->log->debug('ATTACHOUTSIDE', 'A test');
|
||||||
return get_class($this);
|
return get_class($this);
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -34,9 +32,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: HTML/ELEMENTS';
|
$PAGE_NAME = 'TEST CLASS: HTML/ELEMENTS';
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -35,9 +33,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
// class type
|
// class type
|
||||||
$_chk_enc = new CoreLibs\Check\Encoding();
|
$_chk_enc = new CoreLibs\Check\Encoding();
|
||||||
@@ -102,7 +100,7 @@ foreach ($enc_strings as $_string) {
|
|||||||
// static use
|
// static use
|
||||||
$_string = $enc_strings[1];
|
$_string = $enc_strings[1];
|
||||||
$string = $chk_enc::checkConvertEncoding($_string, 'UTF-8', 'ISO-2022-JP-MS');
|
$string = $chk_enc::checkConvertEncoding($_string, 'UTF-8', 'ISO-2022-JP-MS');
|
||||||
print "S::ENC CHECK: $_string: " . ($string === false ? '-OK-' : $string) . "<br>";
|
print "S::ENC CHECK: $_string: " . ($string === false ? '-OK-' : $log->prAr($string)) . "<br>";
|
||||||
|
|
||||||
// error message
|
// error message
|
||||||
print $log->printErrorMsg();
|
print $log->printErrorMsg();
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -33,9 +31,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: FILE';
|
$PAGE_NAME = 'TEST CLASS: FILE';
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -33,9 +31,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$hash_class = 'CoreLibs\Create\Hash';
|
$hash_class = 'CoreLibs\Create\Hash';
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -34,9 +32,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$_html = new CoreLibs\Convert\Html();
|
$_html = new CoreLibs\Convert\Html();
|
||||||
$_elements = new CoreLibs\Output\Form\Elements();
|
$_elements = new CoreLibs\Output\Form\Elements();
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -33,9 +31,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$_image = new CoreLibs\Output\Image();
|
$_image = new CoreLibs\Output\Image();
|
||||||
$image_class = 'CoreLibs\Output\Image';
|
$image_class = 'CoreLibs\Output\Image';
|
||||||
@@ -54,12 +52,15 @@ $thumb_width = 250;
|
|||||||
$thumb_height = 300;
|
$thumb_height = 300;
|
||||||
// class
|
// class
|
||||||
$image = BASE . LAYOUT . CONTENT_PATH . IMAGES . 'no_picture_square.jpg';
|
$image = BASE . LAYOUT . CONTENT_PATH . IMAGES . 'no_picture_square.jpg';
|
||||||
|
// folders
|
||||||
|
$cache_folder = BASE . LAYOUT . CONTENT_PATH . CACHE . IMAGES;
|
||||||
|
$web_folder = LAYOUT . CACHE . IMAGES;
|
||||||
// rotate image first
|
// rotate image first
|
||||||
$_image->correctImageOrientation($image);
|
$_image->correctImageOrientation($image);
|
||||||
// thumbnail tests
|
// thumbnail tests
|
||||||
echo "<div>CLASS->CREATETHUMBNAILSIMPLE: "
|
echo "<div>CLASS->CREATETHUMBNAILSIMPLE: "
|
||||||
. basename($image) . ": WIDTH: $thumb_width<br><img src="
|
. basename($image) . ": WIDTH: $thumb_width<br><img src="
|
||||||
. $_image->createThumbnailSimple($image, $thumb_width) . "></div>";
|
. $_image->createThumbnailSimple($image, $thumb_width, 0, $cache_folder, $web_folder) . "></div>";
|
||||||
// static
|
// static
|
||||||
$image = BASE . LAYOUT . CONTENT_PATH . IMAGES . 'no_picture.jpg';
|
$image = BASE . LAYOUT . CONTENT_PATH . IMAGES . 'no_picture.jpg';
|
||||||
// rotate image first
|
// rotate image first
|
||||||
@@ -67,7 +68,7 @@ $image_class::correctImageOrientation($image);
|
|||||||
// thumbnail tests
|
// thumbnail tests
|
||||||
echo "<div>S::CREATETHUMBNAILSIMPLE: "
|
echo "<div>S::CREATETHUMBNAILSIMPLE: "
|
||||||
. basename($image) . ": WIDTH: $thumb_width<br><img src="
|
. basename($image) . ": WIDTH: $thumb_width<br><img src="
|
||||||
. $image_class::createThumbnailSimple($image, $thumb_width) . "></div>";
|
. $image_class::createThumbnailSimple($image, $thumb_width, 0, $cache_folder, $web_folder) . "></div>";
|
||||||
|
|
||||||
echo "U-STATIC VARIOUS:<br>";
|
echo "U-STATIC VARIOUS:<br>";
|
||||||
// image thumbnail
|
// image thumbnail
|
||||||
@@ -92,21 +93,29 @@ $images = array(
|
|||||||
$finfo = new finfo(FILEINFO_MIME_TYPE);
|
$finfo = new finfo(FILEINFO_MIME_TYPE);
|
||||||
foreach ($images as $image) {
|
foreach ($images as $image) {
|
||||||
$image = BASE . LAYOUT . CONTENT_PATH . IMAGES . $image;
|
$image = BASE . LAYOUT . CONTENT_PATH . IMAGES . $image;
|
||||||
list ($height, $width, $img_type) = getimagesize($image);
|
list ($height, $width, $img_type) = \CoreLibs\Convert\SetVarType::setArray(getimagesize($image));
|
||||||
echo "<div><b>IMAGE INFO</b>: " . $height . "x" . $width . ", TYPE: "
|
echo "<div><b>IMAGE INFO</b>: " . $height . "x" . $width . ", TYPE: "
|
||||||
. $img_type . " [" . $finfo->file($image) . "]</div>";
|
. $log->prAr($img_type) . " [" . $finfo->file($image) . "]</div>";
|
||||||
// rotate image first
|
// rotate image first
|
||||||
Image::correctImageOrientation($image);
|
Image::correctImageOrientation($image);
|
||||||
// thumbnail tests
|
// thumbnail tests
|
||||||
echo "<div>" . basename($image) . ": WIDTH: $thumb_width<br><img src="
|
echo "<div>" . basename($image) . ": WIDTH: $thumb_width<br><img src="
|
||||||
. Image::createThumbnailSimple($image, $thumb_width) . "></div>";
|
. Image::createThumbnailSimple($image, $thumb_width, 0, $cache_folder, $web_folder) . "></div>";
|
||||||
echo "<div>" . basename($image) . ": HEIGHT: $thumb_height<br><img src="
|
echo "<div>" . basename($image) . ": HEIGHT: $thumb_height<br><img src="
|
||||||
. Image::createThumbnailSimple($image, 0, $thumb_height) . "></div>";
|
. Image::createThumbnailSimple($image, 0, $thumb_height, $cache_folder, $web_folder) . "></div>";
|
||||||
echo "<div>" . basename($image) . ": WIDTH/HEIGHT: $thumb_width x $thumb_height<br><img src="
|
echo "<div>" . basename($image) . ": WIDTH/HEIGHT: $thumb_width x $thumb_height<br><img src="
|
||||||
. Image::createThumbnailSimple($image, $thumb_width, $thumb_height) . "></div>";
|
. Image::createThumbnailSimple($image, $thumb_width, $thumb_height, $cache_folder, $web_folder) . "></div>";
|
||||||
// test with dummy
|
// test with dummy
|
||||||
echo "<div>" . basename($image) . ": WIDTH/HEIGHT: $thumb_width x $thumb_height (+DUMMY)<br><img src="
|
echo "<div>" . basename($image) . ": WIDTH/HEIGHT: $thumb_width x $thumb_height (+DUMMY)<br><img src="
|
||||||
. Image::createThumbnailSimple($image, $thumb_width, $thumb_height, null, true, false) . "></div>";
|
. Image::createThumbnailSimple(
|
||||||
|
$image,
|
||||||
|
$thumb_width,
|
||||||
|
$thumb_height,
|
||||||
|
$cache_folder,
|
||||||
|
$web_folder,
|
||||||
|
true,
|
||||||
|
false
|
||||||
|
) . "></div>";
|
||||||
echo "<hr>";
|
echo "<hr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -34,9 +32,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$json_class = 'CoreLibs\Convert\Json';
|
$json_class = 'CoreLibs\Convert\Json';
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -33,31 +31,77 @@ print '<div><a href="class_test.php">Class Test Master</a></div>';
|
|||||||
print '<div><h1>' . $PAGE_NAME . '</h1></div>';
|
print '<div><h1>' . $PAGE_NAME . '</h1></div>';
|
||||||
|
|
||||||
use CoreLibs\Language\L10n;
|
use CoreLibs\Language\L10n;
|
||||||
|
use CoreLibs\Language;
|
||||||
use CoreLibs\Debug\Support;
|
use CoreLibs\Debug\Support;
|
||||||
|
|
||||||
echo "<br><b>LIST LOCALES</b><br>";
|
echo "<br><b>LIST LOCALES</b><br>";
|
||||||
|
|
||||||
$locale = 'en_US.UTF-8';
|
$locale = 'en_US.UTF-8';
|
||||||
$locales = CoreLibs\Language\L10n::listLocales($locale);
|
$locales = L10n::listLocales($locale);
|
||||||
print "[" . $locale . "] LOCALES: " . Support::printAr($locales) . "<br>";
|
print "[" . $locale . "] LOCALES: " . Support::printAr($locales) . "<br>";
|
||||||
$locale = 'en.UTF-8';
|
$locale = 'en.UTF-8';
|
||||||
$locales = CoreLibs\Language\L10n::listLocales($locale);
|
$locales = L10n::listLocales($locale);
|
||||||
print "[" . $locale . "] LOCALES: " . Support::printAr($locales) . "<br>";
|
print "[" . $locale . "] LOCALES: " . Support::printAr($locales) . "<br>";
|
||||||
|
|
||||||
echo "<br><b>LOCALE INFO</b><br>";
|
echo "<br><b>PARSE LOCAL</b><br>";
|
||||||
$locale = 'en_US.UTF-8';
|
$locale = 'en_US.UTF-8';
|
||||||
$locale_info = CoreLibs\Language\L10n::parseLocale($locale);
|
$locale_info = L10n::parseLocale($locale);
|
||||||
print "[" . $locale . "] INFO: " . Support::printAr($locale_info) . "<br>";
|
print "[" . $locale . "] INFO: " . Support::printAr($locale_info) . "<br>";
|
||||||
$locale = 'en.UTF-8';
|
$locale = 'en.UTF-8';
|
||||||
$locale_info = CoreLibs\Language\L10n::parseLocale($locale);
|
$locale_info = L10n::parseLocale($locale);
|
||||||
print "[" . $locale . "] INFO: " . Support::printAr($locale_info) . "<br>";
|
print "[" . $locale . "] INFO: " . Support::printAr($locale_info) . "<br>";
|
||||||
|
|
||||||
echo "<br><b>AUTO DETECT</b><br>";
|
echo "<br><b>AUTO DETECT</b><br>";
|
||||||
|
|
||||||
$get_locale = \CoreLibs\Language\GetLocale::setLocale();
|
// DEPRECATED
|
||||||
print "[AUTO]: " . Support::printAr($get_locale) . "<br>";
|
// $get_locale = Language\GetLocale::setLocale();
|
||||||
$get_locale = \CoreLibs\Language\GetLocale::setLocale('en', 'foo', 'ISO-8895');
|
// print "[AUTO, DEPRECATED]: " . Support::printAr($get_locale) . "<br>";
|
||||||
|
$get_locale = Language\GetLocale::setLocaleFromSession(
|
||||||
|
SITE_LOCALE,
|
||||||
|
str_replace('/', '', CONTENT_PATH),
|
||||||
|
'',
|
||||||
|
BASE . INCLUDES . LOCALE
|
||||||
|
);
|
||||||
|
print "[NAMED CONSTANTS OUTSIDE]: " . Support::printAr($get_locale) . "<br>";
|
||||||
|
$get_locale = Language\GetLocale::setLocaleFromSession(
|
||||||
|
'en',
|
||||||
|
'foo',
|
||||||
|
'ISO-8895',
|
||||||
|
BASE . INCLUDES . LOCALE
|
||||||
|
);
|
||||||
print "[OVERRIDE]: " . Support::printAr($get_locale) . "<br>";
|
print "[OVERRIDE]: " . Support::printAr($get_locale) . "<br>";
|
||||||
|
// must set session vars for setLangFromSession
|
||||||
|
// DEFAULT_LOCALE
|
||||||
|
// DEFAULT_DOMAIN
|
||||||
|
// DEFAULT_CHARSET (should be set from DEFAULT_LOCALE)
|
||||||
|
// LOCALE_PATH
|
||||||
|
$_SESSION['DEFAULT_LOCALE'] = 'ja_JP.UTF-8';
|
||||||
|
$_SESSION['DEFAULT_CHARSET'] = 'UTF-8';
|
||||||
|
$_SESSION['DEFAULT_DOMAIN'] = 'admin';
|
||||||
|
$_SESSION['LOCALE_PATH'] = BASE . INCLUDES . LOCALE;
|
||||||
|
$get_locale = Language\GetLocale::setLocaleFromSession(
|
||||||
|
SITE_LOCALE,
|
||||||
|
SITE_DOMAIN,
|
||||||
|
SITE_ENCODING,
|
||||||
|
BASE . INCLUDES . LOCALE
|
||||||
|
);
|
||||||
|
print "[SESSION SET]: " . Support::printAr($get_locale) . "<br>";
|
||||||
|
// must set session vars for setLangFromSession
|
||||||
|
// DEFAULT_LOCALE
|
||||||
|
// DEFAULT_DOMAIN
|
||||||
|
// DEFAULT_CHARSET (should be set from DEFAULT_LOCALE)
|
||||||
|
// LOCALE_PATH
|
||||||
|
$_SESSION['DEFAULT_LOCALE'] = '00000#####';
|
||||||
|
$_SESSION['DEFAULT_CHARSET'] = '';
|
||||||
|
$_SESSION['DEFAULT_DOMAIN'] = 'admin';
|
||||||
|
$_SESSION['LOCALE_PATH'] = BASE . INCLUDES . LOCALE;
|
||||||
|
$get_locale = Language\GetLocale::setLocaleFromSession(
|
||||||
|
SITE_LOCALE,
|
||||||
|
SITE_DOMAIN,
|
||||||
|
SITE_ENCODING,
|
||||||
|
BASE . INCLUDES . LOCALE
|
||||||
|
);
|
||||||
|
print "[SESSION SET INVALID]: " . Support::printAr($get_locale) . "<br>";
|
||||||
|
|
||||||
// try to load non existing
|
// try to load non existing
|
||||||
echo "<br><b>NEW TYPE</b><br>";
|
echo "<br><b>NEW TYPE</b><br>";
|
||||||
@@ -69,8 +113,8 @@ $domain = 'admin';
|
|||||||
$encoding = 'UTF-8';
|
$encoding = 'UTF-8';
|
||||||
$path = BASE . INCLUDES . LOCALE;
|
$path = BASE . INCLUDES . LOCALE;
|
||||||
// load direct
|
// load direct
|
||||||
$l = new CoreLibs\Language\L10n($lang, $domain, $path);
|
echo "* <b>NEW CLASS SET</b><br>";
|
||||||
echo "*<br>";
|
$l = new L10n($lang, $domain, $path, $encoding);
|
||||||
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
||||||
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
||||||
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
||||||
@@ -95,10 +139,11 @@ for ($n = 0; $n <= 3; $n++) {
|
|||||||
echo "CONTEXT MULTI TEST $n: " . $single_string . "/" . $multi_string . " => "
|
echo "CONTEXT MULTI TEST $n: " . $single_string . "/" . $multi_string . " => "
|
||||||
. $l->__np($context, $single_string, $multi_string, $n) . "<br>";
|
. $l->__np($context, $single_string, $multi_string, $n) . "<br>";
|
||||||
}
|
}
|
||||||
|
echo "LOCALE: " . Support::printAr($l->getLocaleAsArray()) . "<br>";
|
||||||
// change domain
|
// change domain
|
||||||
$domain = 'frontend';
|
$domain = 'frontend';
|
||||||
|
echo "* <b>CHANGE DOMAIN $domain</b><br>";
|
||||||
$l->getTranslator('', $domain, $path);
|
$l->getTranslator('', $domain, $path);
|
||||||
echo "*<br>";
|
|
||||||
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
||||||
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
||||||
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
||||||
@@ -108,11 +153,12 @@ echo "BASE PATH: " . $l->getBaseLocalePath() . "<br>";
|
|||||||
echo "LOAD ERROR: " . $l->getLoadError() . "<br>";
|
echo "LOAD ERROR: " . $l->getLoadError() . "<br>";
|
||||||
echo "INPUT TEST: " . $string . " => " . $l->__($string) . "<br>";
|
echo "INPUT TEST: " . $string . " => " . $l->__($string) . "<br>";
|
||||||
echo "TROUGH LOAD: " . $l->getTranslatorClass()->gettext($string) . "<br>";
|
echo "TROUGH LOAD: " . $l->getTranslatorClass()->gettext($string) . "<br>";
|
||||||
|
echo "LOCALE: " . Support::printAr($l->getLocaleAsArray()) . "<br>";
|
||||||
// change language short type
|
// change language short type
|
||||||
$lang = 'en';
|
$lang = 'en';
|
||||||
$domain = 'admin';
|
$domain = 'admin';
|
||||||
|
echo "* <b>CHANGE LANG $lang AND DOMAIN $domain</b><br>";
|
||||||
$l->getTranslator($lang, $domain, $path);
|
$l->getTranslator($lang, $domain, $path);
|
||||||
echo "*<br>";
|
|
||||||
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
||||||
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
||||||
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
||||||
@@ -122,10 +168,24 @@ echo "BASE PATH: " . $l->getBaseLocalePath() . "<br>";
|
|||||||
echo "LOAD ERROR: " . $l->getLoadError() . "<br>";
|
echo "LOAD ERROR: " . $l->getLoadError() . "<br>";
|
||||||
echo "INPUT TEST: " . $string . " => " . $l->__($string) . "<br>";
|
echo "INPUT TEST: " . $string . " => " . $l->__($string) . "<br>";
|
||||||
echo "TROUGH LOAD: " . $l->getTranslatorClass()->gettext($string) . "<br>";
|
echo "TROUGH LOAD: " . $l->getTranslatorClass()->gettext($string) . "<br>";
|
||||||
|
echo "LOCALE: " . Support::printAr($l->getLocaleAsArray()) . "<br>";
|
||||||
|
$encoding = 'SJIS';
|
||||||
|
echo "* <b>SET DIFFERENT CHARSET $encoding</b><br>";
|
||||||
|
$l->getTranslator($lang, $domain, $path, $encoding);
|
||||||
|
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
||||||
|
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
||||||
|
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
||||||
|
echo "CONTENT PATH: " . $l->getBaseContentPath() . "<br>";
|
||||||
|
echo "DOMAIN PATH: " . $l->getTextDomain($domain) . "<br>";
|
||||||
|
echo "BASE PATH: " . $l->getBaseLocalePath() . "<br>";
|
||||||
|
echo "LOAD ERROR: " . $l->getLoadError() . "<br>";
|
||||||
|
echo "INPUT TEST: " . $string . " => " . $l->__($string) . "<br>";
|
||||||
|
echo "TROUGH LOAD: " . $l->getTranslatorClass()->gettext($string) . "<br>";
|
||||||
|
echo "LOCALE: " . Support::printAr($l->getLocaleAsArray()) . "<br>";
|
||||||
// chang to wrong language
|
// chang to wrong language
|
||||||
$lang = 'tr';
|
$lang = 'tr';
|
||||||
|
echo "* <b>CHANGE NOT FOUND LANG $lang</b><br>";
|
||||||
$l->getTranslator($lang, $domain, $path);
|
$l->getTranslator($lang, $domain, $path);
|
||||||
echo "*<br>";
|
|
||||||
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
echo "LANGUAGE WANT/SET: " . $lang . '/' . $l->getLocale() . "<br>";
|
||||||
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
echo "DOMAIN WANT/SET: " . $domain . '/' . $l->getDomain() . "<br>";
|
||||||
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
echo "LANGUAGE FILE: " . $l->getMoFile() . "<br>";
|
||||||
@@ -135,6 +195,25 @@ echo "BASE PATH: " . $l->getBaseLocalePath() . "<br>";
|
|||||||
echo "LOAD ERROR: " . $l->getLoadError() . "<br>";
|
echo "LOAD ERROR: " . $l->getLoadError() . "<br>";
|
||||||
echo "INPUT TEST: " . $string . " => " . $l->__($string) . "<br>";
|
echo "INPUT TEST: " . $string . " => " . $l->__($string) . "<br>";
|
||||||
echo "TROUGH LOAD: " . $l->getTranslatorClass()->gettext($string) . "<br>";
|
echo "TROUGH LOAD: " . $l->getTranslatorClass()->gettext($string) . "<br>";
|
||||||
|
echo "LOCALE: " . Support::printAr($l->getLocaleAsArray()) . "<br>";
|
||||||
|
// set different encoding
|
||||||
|
$lang = 'ja';
|
||||||
|
$domain = 'admin';
|
||||||
|
$encoding = 'SJIS';
|
||||||
|
echo "* <b>CLASS NEW LAUNCH: $lang / $encoding</b><br>";
|
||||||
|
$path = BASE . INCLUDES . LOCALE;
|
||||||
|
// load direct
|
||||||
|
$l = new L10n($lang, $domain, $path, $encoding);
|
||||||
|
echo "LOCALE: " . Support::printAr($l->getLocaleAsArray()) . "<br>";
|
||||||
|
// lang with full set
|
||||||
|
$lang = 'ja_JP.UTF-8';
|
||||||
|
$domain = 'admin';
|
||||||
|
$encoding = 'SJIS';
|
||||||
|
echo "* <b>CLASS NEW LAUNCH: $lang / $encoding</b><br>";
|
||||||
|
$path = BASE . INCLUDES . LOCALE;
|
||||||
|
// load direct
|
||||||
|
$l = new L10n($lang, $domain, $path, $encoding);
|
||||||
|
echo "LOCALE: " . Support::printAr($l->getLocaleAsArray()) . "<br>";
|
||||||
|
|
||||||
$lang = 'en';
|
$lang = 'en';
|
||||||
$domain = 'admin';
|
$domain = 'admin';
|
||||||
@@ -146,8 +225,10 @@ L10n::getInstance()->setDomain($domain);
|
|||||||
echo "SET DOMAIN: " . L10n::getInstance()->getDomain() . "<br>";
|
echo "SET DOMAIN: " . L10n::getInstance()->getDomain() . "<br>";
|
||||||
L10n::getInstance()->setTextDomain($domain, $path);
|
L10n::getInstance()->setTextDomain($domain, $path);
|
||||||
echo "SET TEXT DOMAIN: " . L10n::getInstance()->getTextDomain($domain) . "<br>";
|
echo "SET TEXT DOMAIN: " . L10n::getInstance()->getTextDomain($domain) . "<br>";
|
||||||
|
// L10n::getInstance()->setOverrideEncoding('SJIS');
|
||||||
// null call __bind_textdomain_codeset
|
// null call __bind_textdomain_codeset
|
||||||
echo "INPUT TEST: " . $string . " => " . L10n::getInstance()->getTranslator()->gettext($string) . "<br>";
|
echo "INPUT TEST: " . $string . " => " . L10n::getInstance()->getTranslator()->gettext($string) . "<br>";
|
||||||
|
echo "LOCALE: " . Support::printAr(L10n::getInstance()->getLocaleAsArray()) . "<br>";
|
||||||
|
|
||||||
echo "<br><b>FUNCTIONS</b><br>";
|
echo "<br><b>FUNCTIONS</b><br>";
|
||||||
// real statisc test
|
// real statisc test
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -32,13 +30,27 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
||||||
$login = new CoreLibs\ACL\Login($db, $log, $session);
|
$login = new CoreLibs\ACL\Login(
|
||||||
|
$db,
|
||||||
|
$log,
|
||||||
|
$session,
|
||||||
|
[
|
||||||
|
'auto_login' => false,
|
||||||
|
'default_acl_level' => DEFAULT_ACL_LEVEL,
|
||||||
|
'logout_target' => '',
|
||||||
|
'site_locale' => SITE_LOCALE,
|
||||||
|
'site_domain' => SITE_DOMAIN,
|
||||||
|
'site_encoding' => SITE_ENCODING,
|
||||||
|
'locale_path' => BASE . INCLUDES . LOCALE,
|
||||||
|
]
|
||||||
|
);
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
|
$login->loginMainCall();
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: LOGIN';
|
$PAGE_NAME = 'TEST CLASS: LOGIN';
|
||||||
print "<!DOCTYPE html>";
|
print "<!DOCTYPE html>";
|
||||||
@@ -53,7 +65,8 @@ echo "MIN ACCESS BASE: " . ($login->loginCheckAccessBase('admin') ? 'OK' : 'BAD'
|
|||||||
echo "MIN ACCESS PAGE: " . ($login->loginCheckAccessPage('admin') ? 'OK' : 'BAD') . "<br>";
|
echo "MIN ACCESS PAGE: " . ($login->loginCheckAccessPage('admin') ? 'OK' : 'BAD') . "<br>";
|
||||||
|
|
||||||
echo "ACL: " . \CoreLibs\Debug\Support::printAr($login->loginGetAcl()) . "<br>";
|
echo "ACL: " . \CoreLibs\Debug\Support::printAr($login->loginGetAcl()) . "<br>";
|
||||||
echo "ACL (MIN): " . \CoreLibs\Debug\Support::printAr($login->loginGetAcl()['min']) . "<br>";
|
echo "ACL (MIN): " . \CoreLibs\Debug\Support::printAr($login->loginGetAcl()['min'] ?? []) . "<br>";
|
||||||
|
echo "LOCALE: " . \CoreLibs\Debug\Support::printAr($login->loginGetLocale()) . "<br>";
|
||||||
|
|
||||||
// error message
|
// error message
|
||||||
print $log->printErrorMsg();
|
print $log->printErrorMsg();
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -31,9 +29,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$_math = new CoreLibs\Convert\Math();
|
$_math = new CoreLibs\Convert\Math();
|
||||||
$math_class = 'CoreLibs\Convert\Math';
|
$math_class = 'CoreLibs\Convert\Math';
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -34,9 +32,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: MEMORY USAGE';
|
$PAGE_NAME = 'TEST CLASS: MEMORY USAGE';
|
||||||
|
|||||||
@@ -4,16 +4,14 @@
|
|||||||
* @phan-file-suppress PhanTypeSuspiciousStringExpression
|
* @phan-file-suppress PhanTypeSuspiciousStringExpression
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -31,9 +29,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$_mime = new CoreLibs\Convert\MimeAppName();
|
$_mime = new CoreLibs\Convert\MimeAppName();
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,7 @@ $DEBUG_ALL = true;
|
|||||||
$PRINT_ALL = true;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = true;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -63,11 +61,26 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$form = new CoreLibs\Output\Form\Generate(DB_CONFIG, $log, table_arrays: $table_arrays);
|
$l10n = new CoreLibs\Language\L10n(
|
||||||
|
SITE_LOCALE,
|
||||||
|
SITE_DOMAIN,
|
||||||
|
BASE . INCLUDES . LOCALE,
|
||||||
|
SITE_ENCODING
|
||||||
|
);
|
||||||
|
$form = new CoreLibs\Output\Form\Generate(
|
||||||
|
DB_CONFIG,
|
||||||
|
$log,
|
||||||
|
$l10n,
|
||||||
|
[
|
||||||
|
'base' => 10,
|
||||||
|
'admin' => 0
|
||||||
|
],
|
||||||
|
table_arrays: $table_arrays
|
||||||
|
);
|
||||||
|
|
||||||
$PAGE_NAME = 'TEST CLASS: FORM GENERATE';
|
$PAGE_NAME = 'TEST CLASS: FORM GENERATE';
|
||||||
print "<!DOCTYPE html>";
|
print "<!DOCTYPE html>";
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$DEBUG_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
$DEBUG_ALL_OVERRIDE = false; // set to 1 to debug on live/remote server locations
|
||||||
$DEBUG_ALL = 1;
|
$DEBUG_ALL = true;
|
||||||
$PRINT_ALL = 1;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = 1;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -33,9 +31,9 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$_password = new CoreLibs\Check\Password();
|
$_password = new CoreLibs\Check\Password();
|
||||||
$password_class = 'CoreLibs\Check\Password';
|
$password_class = 'CoreLibs\Check\Password';
|
||||||
|
|||||||
@@ -11,9 +11,7 @@ $DEBUG_ALL = true;
|
|||||||
$PRINT_ALL = true;
|
$PRINT_ALL = true;
|
||||||
$DB_DEBUG = true;
|
$DB_DEBUG = true;
|
||||||
|
|
||||||
if ($DEBUG_ALL) {
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
|
||||||
}
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
@@ -33,19 +31,40 @@ $log = new CoreLibs\Debug\Logging([
|
|||||||
// add file date
|
// add file date
|
||||||
'print_file_date' => true,
|
'print_file_date' => true,
|
||||||
// set debug and print flags
|
// set debug and print flags
|
||||||
'debug_all' => $DEBUG_ALL ?? false,
|
'debug_all' => $DEBUG_ALL,
|
||||||
'echo_all' => $ECHO_ALL ?? false,
|
'echo_all' => $ECHO_ALL ?? false,
|
||||||
'print_all' => $PRINT_ALL ?? false,
|
'print_all' => $PRINT_ALL,
|
||||||
]);
|
]);
|
||||||
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
|
||||||
$login = new CoreLibs\ACL\Login($db, $log, $session);
|
$login = new CoreLibs\ACL\Login(
|
||||||
$locale = \CoreLibs\Language\GetLocale::setLocale();
|
$db,
|
||||||
|
$log,
|
||||||
|
$session,
|
||||||
|
[
|
||||||
|
'auto_login' => true,
|
||||||
|
'default_acl_level' => DEFAULT_ACL_LEVEL,
|
||||||
|
'logout_target' => '',
|
||||||
|
'site_locale' => SITE_LOCALE,
|
||||||
|
'site_domain' => SITE_DOMAIN,
|
||||||
|
'site_encoding' => SITE_ENCODING,
|
||||||
|
'locale_path' => BASE . INCLUDES . LOCALE,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
$locale = $login->loginGetLocale();
|
||||||
$l10n = new \CoreLibs\Language\L10n(
|
$l10n = new \CoreLibs\Language\L10n(
|
||||||
$locale['locale'],
|
$locale['locale'],
|
||||||
$locale['domain'],
|
$locale['domain'],
|
||||||
$locale['path'],
|
$locale['path'],
|
||||||
|
$locale['encoding'],
|
||||||
|
);
|
||||||
|
|
||||||
|
$backend = new CoreLibs\Admin\Backend(
|
||||||
|
$db,
|
||||||
|
$log,
|
||||||
|
$session,
|
||||||
|
$l10n,
|
||||||
|
DEFAULT_ACL_LEVEL
|
||||||
);
|
);
|
||||||
$backend = new CoreLibs\Admin\Backend($db, $log, $session, $l10n, $locale);
|
|
||||||
$backend->db->dbInfo(true);
|
$backend->db->dbInfo(true);
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
|
|
||||||
@@ -84,6 +103,7 @@ print '<div><a href="class_test.debug.php">Class Test: DEBUG</a></div>';
|
|||||||
print '<div><a href="class_test.output.form.php">Class Test: OUTPUT FORM</a></div>';
|
print '<div><a href="class_test.output.form.php">Class Test: OUTPUT FORM</a></div>';
|
||||||
print '<div><a href="class_test.admin.backend.php">Class Test: BACKEND ADMIN CLASS</a></div>';
|
print '<div><a href="class_test.admin.backend.php">Class Test: BACKEND ADMIN CLASS</a></div>';
|
||||||
print '<div><a href="class_test.lang.php">Class Test: LANG/L10n</a></div>';
|
print '<div><a href="class_test.lang.php">Class Test: LANG/L10n</a></div>';
|
||||||
|
print '<div><a href="class_test.varistype.php">Class Test: SET VAR TYPE</a></div>';
|
||||||
print '<div><a href="class_test.session.php">Class Test: SESSION</a></div>';
|
print '<div><a href="class_test.session.php">Class Test: SESSION</a></div>';
|
||||||
print '<div><a href="class_test.session.read.php">Class Test: SESSION: READ</a></div>';
|
print '<div><a href="class_test.session.read.php">Class Test: SESSION: READ</a></div>';
|
||||||
print '<div><a href="class_test.smarty.php">Class Test: SMARTY</a></div>';
|
print '<div><a href="class_test.smarty.php">Class Test: SMARTY</a></div>';
|
||||||
@@ -125,7 +145,9 @@ foreach (['on', 'off'] as $flag) {
|
|||||||
foreach (['debug', 'echo', 'print'] as $type) {
|
foreach (['debug', 'echo', 'print'] as $type) {
|
||||||
$prefix = $flag == 'off' ? 'NOT ' : '';
|
$prefix = $flag == 'off' ? 'NOT ' : '';
|
||||||
print $prefix . strtoupper($type) . ' OUT: '
|
print $prefix . strtoupper($type) . ' OUT: '
|
||||||
. \CoreLibs\Debug\Support::printAr($backend->log->getLogLevel($type, $flag)) . '<br>';
|
. \CoreLibs\Debug\Support::printAr(\CoreLibs\Convert\SetVarType::setArray(
|
||||||
|
$backend->log->getLogLevel($type, $flag)
|
||||||
|
)) . '<br>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach (['debug', 'echo', 'print'] as $type) {
|
foreach (['debug', 'echo', 'print'] as $type) {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user