From c27902fda15af14d22c630b81818260d4eabb69e Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Fri, 30 Sep 2022 13:00:12 -0600 Subject: [PATCH] adding phpstan --- composer.json | 3 +- composer.lock | 339 ++++++++++++++++++++++++-------------------------- 2 files changed, 163 insertions(+), 179 deletions(-) diff --git a/composer.json b/composer.json index 6235919..6391518 100644 --- a/composer.json +++ b/composer.json @@ -12,10 +12,11 @@ ], "require": { "php": "^8.0.2", - "eftec/bladeone": "^4.6" + "eftec/bladeone": "^3.52" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.3.0", + "phpstan/phpstan": "^1.8", "wp-cli/i18n-command": "^2.4.0", "wp-coding-standards/wpcs": "^2.3.0" }, diff --git a/composer.lock b/composer.lock index 2dca9ad..20a4414 100644 --- a/composer.lock +++ b/composer.lock @@ -4,30 +4,30 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "93b4f488145c9bf1c4ecf7adad47614e", + "content-hash": "34ee476391993d7fe73dcbc8a6970190", "packages": [ { "name": "eftec/bladeone", - "version": "4.1", + "version": "3.52", "source": { "type": "git", "url": "https://github.com/EFTEC/BladeOne.git", - "reference": "d3e1efa1c6f776aa87fe47164d77e7ea67fc196f" + "reference": "a19bf66917de0b29836983db87a455a4f6e32148" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/EFTEC/BladeOne/zipball/d3e1efa1c6f776aa87fe47164d77e7ea67fc196f", - "reference": "d3e1efa1c6f776aa87fe47164d77e7ea67fc196f", + "url": "https://api.github.com/repos/EFTEC/BladeOne/zipball/a19bf66917de0b29836983db87a455a4f6e32148", + "reference": "a19bf66917de0b29836983db87a455a4f6e32148", "shasum": "" }, "require": { "ext-json": "*", - "php": ">=7.1.3" + "php": ">=5.6" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.1", + "friendsofphp/php-cs-fixer": "^2.16.1", "phpunit/phpunit": "^5.7", - "squizlabs/php_codesniffer": "^3.6.0" + "squizlabs/php_codesniffer": "^3.5.4" }, "suggest": { "eftec/bladeonehtml": "Extension to create forms", @@ -60,24 +60,24 @@ ], "support": { "issues": "https://github.com/EFTEC/BladeOne/issues", - "source": "https://github.com/EFTEC/BladeOne/tree/4.1" + "source": "https://github.com/EFTEC/BladeOne/tree/3.52" }, - "time": "2021-09-29T15:23:25+00:00" + "time": "2021-04-17T13:49:01+00:00" } ], "packages-dev": [ { "name": "gettext/gettext", - "version": "v4.8.5", + "version": "v4.8.7", "source": { "type": "git", "url": "https://github.com/php-gettext/Gettext.git", - "reference": "ef2e312dff383fc0e4cd62dd39042e1157f137d4" + "reference": "3f7bc5ef23302a9059e64934f3d59e454516bec0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-gettext/Gettext/zipball/ef2e312dff383fc0e4cd62dd39042e1157f137d4", - "reference": "ef2e312dff383fc0e4cd62dd39042e1157f137d4", + "url": "https://api.github.com/repos/php-gettext/Gettext/zipball/3f7bc5ef23302a9059e64934f3d59e454516bec0", + "reference": "3f7bc5ef23302a9059e64934f3d59e454516bec0", "shasum": "" }, "require": { @@ -129,7 +129,7 @@ "support": { "email": "oom@oscarotero.com", "issues": "https://github.com/oscarotero/Gettext/issues", - "source": "https://github.com/php-gettext/Gettext/tree/v4.8.5" + "source": "https://github.com/php-gettext/Gettext/tree/v4.8.7" }, "funding": [ { @@ -145,20 +145,20 @@ "type": "patreon" } ], - "time": "2021-07-13T16:45:53+00:00" + "time": "2022-08-02T09:42:10+00:00" }, { "name": "gettext/languages", - "version": "2.8.1", + "version": "2.9.0", "source": { "type": "git", "url": "https://github.com/php-gettext/Languages.git", - "reference": "4ad818b6341e177b7c508ec4c37e18932a7b788a" + "reference": "ed56dd2c7f4024cc953ed180d25f02f2640e3ffa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-gettext/Languages/zipball/4ad818b6341e177b7c508ec4c37e18932a7b788a", - "reference": "4ad818b6341e177b7c508ec4c37e18932a7b788a", + "url": "https://api.github.com/repos/php-gettext/Languages/zipball/ed56dd2c7f4024cc953ed180d25f02f2640e3ffa", + "reference": "ed56dd2c7f4024cc953ed180d25f02f2640e3ffa", "shasum": "" }, "require": { @@ -207,7 +207,7 @@ ], "support": { "issues": "https://github.com/php-gettext/Languages/issues", - "source": "https://github.com/php-gettext/Languages/tree/2.8.1" + "source": "https://github.com/php-gettext/Languages/tree/2.9.0" }, "funding": [ { @@ -219,23 +219,24 @@ "type": "github" } ], - "time": "2021-07-14T15:03:58+00:00" + "time": "2021-11-11T17:30:39+00:00" }, { "name": "mck89/peast", - "version": "v1.13.8", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/mck89/peast.git", - "reference": "4f0423441ec557f3935b056d10987f2e1c7a3e76" + "reference": "733cd8f62dcb8239094688063a92766bbfcbf523" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mck89/peast/zipball/4f0423441ec557f3935b056d10987f2e1c7a3e76", - "reference": "4f0423441ec557f3935b056d10987f2e1c7a3e76", + "url": "https://api.github.com/repos/mck89/peast/zipball/733cd8f62dcb8239094688063a92766bbfcbf523", + "reference": "733cd8f62dcb8239094688063a92766bbfcbf523", "shasum": "" }, "require": { + "ext-mbstring": "*", "php": ">=5.4.0" }, "require-dev": { @@ -244,7 +245,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.13.8-dev" + "dev-master": "1.15.0-dev" } }, "autoload": { @@ -266,22 +267,22 @@ "description": "Peast is PHP library that generates AST for JavaScript code", "support": { "issues": "https://github.com/mck89/peast/issues", - "source": "https://github.com/mck89/peast/tree/v1.13.8" + "source": "https://github.com/mck89/peast/tree/v1.15.0" }, - "time": "2021-09-11T10:28:18+00:00" + "time": "2022-09-13T15:56:53+00:00" }, { "name": "mustache/mustache", - "version": "v2.13.0", + "version": "v2.14.2", "source": { "type": "git", "url": "https://github.com/bobthecow/mustache.php.git", - "reference": "e95c5a008c23d3151d59ea72484d4f72049ab7f4" + "reference": "e62b7c3849d22ec55f3ec425507bf7968193a6cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/mustache.php/zipball/e95c5a008c23d3151d59ea72484d4f72049ab7f4", - "reference": "e95c5a008c23d3151d59ea72484d4f72049ab7f4", + "url": "https://api.github.com/repos/bobthecow/mustache.php/zipball/e62b7c3849d22ec55f3ec425507bf7968193a6cb", + "reference": "e62b7c3849d22ec55f3ec425507bf7968193a6cb", "shasum": "" }, "require": { @@ -316,22 +317,22 @@ ], "support": { "issues": "https://github.com/bobthecow/mustache.php/issues", - "source": "https://github.com/bobthecow/mustache.php/tree/master" + "source": "https://github.com/bobthecow/mustache.php/tree/v2.14.2" }, - "time": "2019-11-23T21:40:31+00:00" + "time": "2022-08-23T13:07:01+00:00" }, { "name": "php-parallel-lint/php-parallel-lint", - "version": "v1.3.1", + "version": "v1.3.2", "source": { "type": "git", "url": "https://github.com/php-parallel-lint/PHP-Parallel-Lint.git", - "reference": "761f3806e30239b5fcd90a0a45d41dc2138de192" + "reference": "6483c9832e71973ed29cf71bd6b3f4fde438a9de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-parallel-lint/PHP-Parallel-Lint/zipball/761f3806e30239b5fcd90a0a45d41dc2138de192", - "reference": "761f3806e30239b5fcd90a0a45d41dc2138de192", + "url": "https://api.github.com/repos/php-parallel-lint/PHP-Parallel-Lint/zipball/6483c9832e71973ed29cf71bd6b3f4fde438a9de", + "reference": "6483c9832e71973ed29cf71bd6b3f4fde438a9de", "shasum": "" }, "require": { @@ -344,7 +345,7 @@ }, "require-dev": { "nette/tester": "^1.3 || ^2.0", - "php-parallel-lint/php-console-highlighter": "~0.3", + "php-parallel-lint/php-console-highlighter": "0.* || ^1.0", "squizlabs/php_codesniffer": "^3.6" }, "suggest": { @@ -356,7 +357,7 @@ "type": "library", "autoload": { "classmap": [ - "./" + "./src/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -373,9 +374,68 @@ "homepage": "https://github.com/php-parallel-lint/PHP-Parallel-Lint", "support": { "issues": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/issues", - "source": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/tree/v1.3.1" + "source": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/tree/v1.3.2" }, - "time": "2021-08-13T05:35:13+00:00" + "time": "2022-02-21T12:50:22+00:00" + }, + { + "name": "phpstan/phpstan", + "version": "1.8.6", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c386ab2741e64cc9e21729f891b28b2b10fe6618", + "reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "issues": "https://github.com/phpstan/phpstan/issues", + "source": "https://github.com/phpstan/phpstan/tree/1.8.6" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", + "type": "tidelift" + } + ], + "time": "2022-09-23T09:54:39+00:00" }, { "name": "rmccue/requests", @@ -439,16 +499,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.0", + "version": "3.7.1", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625" + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619", + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619", "shasum": "" }, "require": { @@ -491,25 +551,27 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-04-09T00:54:41+00:00" + "time": "2022-06-18T07:21:10+00:00" }, { "name": "symfony/finder", - "version": "v5.3.7", + "version": "v6.1.3", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "a10000ada1e600d109a6c7632e9ac42e8bf2fb93" + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/a10000ada1e600d109a6c7632e9ac42e8bf2fb93", - "reference": "a10000ada1e600d109a6c7632e9ac42e8bf2fb93", + "url": "https://api.github.com/repos/symfony/finder/zipball/39696bff2c2970b3779a5cac7bf9f0b88fc2b709", + "reference": "39696bff2c2970b3779a5cac7bf9f0b88fc2b709", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0" }, "type": "library", "autoload": { @@ -537,7 +599,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.3.7" + "source": "https://github.com/symfony/finder/tree/v6.1.3" }, "funding": [ { @@ -553,136 +615,57 @@ "type": "tidelift" } ], - "time": "2021-08-04T21:20:46+00:00" - }, - { - "name": "symfony/polyfill-php80", - "version": "v1.23.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", - "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "files": [ - "bootstrap.php" - ], - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-07-28T13:41:28+00:00" + "time": "2022-07-29T07:42:06+00:00" }, { "name": "wp-cli/i18n-command", - "version": "v2.2.9", + "version": "v2.4.0", "source": { "type": "git", "url": "https://github.com/wp-cli/i18n-command.git", - "reference": "26e171c5708060b6d7cede9af934b946f5ec3a59" + "reference": "45bc2b47a4ed103b871cd2ec5b483ab55ad12d99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/26e171c5708060b6d7cede9af934b946f5ec3a59", - "reference": "26e171c5708060b6d7cede9af934b946f5ec3a59", + "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/45bc2b47a4ed103b871cd2ec5b483ab55ad12d99", + "reference": "45bc2b47a4ed103b871cd2ec5b483ab55ad12d99", "shasum": "" }, "require": { + "eftec/bladeone": "3.52", "gettext/gettext": "^4.8", - "mck89/peast": "^1.13", + "mck89/peast": "^1.13.11", "wp-cli/wp-cli": "^2.5" }, "require-dev": { "wp-cli/scaffold-command": "^1.2 || ^2", - "wp-cli/wp-cli-tests": "^3.0.11" + "wp-cli/wp-cli-tests": "^3.1" }, "suggest": { + "ext-json": "Used for reading and generating JSON translation files", "ext-mbstring": "Used for calculating include/exclude matches in code extraction" }, "type": "wp-cli-package", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-main": "2.x-dev" }, "bundled": true, "commands": [ "i18n", "i18n make-pot", - "i18n make-json" + "i18n make-json", + "i18n make-mo", + "i18n update-po" ] }, "autoload": { - "psr-4": { - "WP_CLI\\I18n\\": "src/" - }, "files": [ "i18n-command.php" - ] + ], + "psr-4": { + "WP_CLI\\I18n\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -698,9 +681,9 @@ "homepage": "https://github.com/wp-cli/i18n-command", "support": { "issues": "https://github.com/wp-cli/i18n-command/issues", - "source": "https://github.com/wp-cli/i18n-command/tree/v2.2.9" + "source": "https://github.com/wp-cli/i18n-command/tree/v2.4.0" }, - "time": "2021-07-20T21:25:54+00:00" + "time": "2022-07-04T21:43:20+00:00" }, { "name": "wp-cli/mustangostang-spyc", @@ -729,12 +712,12 @@ } }, "autoload": { - "psr-4": { - "Mustangostang\\": "src/" - }, "files": [ "includes/functions.php" - ] + ], + "psr-4": { + "Mustangostang\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -755,16 +738,16 @@ }, { "name": "wp-cli/php-cli-tools", - "version": "v0.11.13", + "version": "v0.11.15", "source": { "type": "git", "url": "https://github.com/wp-cli/php-cli-tools.git", - "reference": "a2866855ac1abc53005c102e901553ad5772dc04" + "reference": "b6edd35988892ea1451392eb7a26d9dbe98c836d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/a2866855ac1abc53005c102e901553ad5772dc04", - "reference": "a2866855ac1abc53005c102e901553ad5772dc04", + "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/b6edd35988892ea1451392eb7a26d9dbe98c836d", + "reference": "b6edd35988892ea1451392eb7a26d9dbe98c836d", "shasum": "" }, "require": { @@ -772,12 +755,12 @@ }, "type": "library", "autoload": { - "psr-0": { - "cli": "lib/" - }, "files": [ "lib/cli/cli.php" - ] + ], + "psr-0": { + "cli": "lib/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -803,27 +786,27 @@ ], "support": { "issues": "https://github.com/wp-cli/php-cli-tools/issues", - "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.13" + "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.15" }, - "time": "2021-07-01T15:08:16+00:00" + "time": "2022-08-15T10:15:55+00:00" }, { "name": "wp-cli/wp-cli", - "version": "v2.5.0", + "version": "v2.6.0", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-cli.git", - "reference": "0bcf0c54f4d35685211d435e25219cc7acbe6d48" + "reference": "dee13c2baf6bf972484a63f8b8dab48f7220f095" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/0bcf0c54f4d35685211d435e25219cc7acbe6d48", - "reference": "0bcf0c54f4d35685211d435e25219cc7acbe6d48", + "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/dee13c2baf6bf972484a63f8b8dab48f7220f095", + "reference": "dee13c2baf6bf972484a63f8b8dab48f7220f095", "shasum": "" }, "require": { "ext-curl": "*", - "mustache/mustache": "~2.13", + "mustache/mustache": "^2.14.1", "php": "^5.6 || ^7.0 || ^8.0", "rmccue/requests": "^1.8", "symfony/finder": ">2.7", @@ -831,12 +814,12 @@ "wp-cli/php-cli-tools": "~0.11.2" }, "require-dev": { - "roave/security-advisories": "dev-master", + "roave/security-advisories": "dev-latest", "wp-cli/db-command": "^1.3 || ^2", "wp-cli/entity-command": "^1.2 || ^2", "wp-cli/extension-command": "^1.1 || ^2", "wp-cli/package-command": "^1 || ^2", - "wp-cli/wp-cli-tests": "^3.0.7" + "wp-cli/wp-cli-tests": "^3.1.3" }, "suggest": { "ext-readline": "Include for a better --prompt implementation", @@ -849,7 +832,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.5.x-dev" + "dev-master": "2.6.x-dev" } }, "autoload": { @@ -876,7 +859,7 @@ "issues": "https://github.com/wp-cli/wp-cli/issues", "source": "https://github.com/wp-cli/wp-cli" }, - "time": "2021-05-14T13:44:51+00:00" + "time": "2022-01-25T16:31:27+00:00" }, { "name": "wp-coding-standards/wpcs", @@ -936,8 +919,8 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=7.3.0" + "php": "^8.0.2" }, "platform-dev": [], - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.3.0" }