Merge branch 'master' of git.ditoforge.com:brian/wp-plugin-boilerplate

This commit is contained in:
Brian 2023-07-28 11:10:11 -06:00
commit 197af28a18
4 changed files with 117 additions and 104 deletions

10
.gitignore vendored
View File

@ -6,8 +6,8 @@ phpunit.xml
.phpunit.result.cache
# Directories
/vendor/
node_modules/
/vendor
/node_modules
cache/
### Editor Specific
@ -16,13 +16,17 @@ cache/
/*.sublime-workspace
# Directories
/.fleet
/.idea
/.vscode
### System Specific
# Files
.*.sw?
._*
.DS_Store
.DS_Store?
Thumbs.db
# Directories
__MACOSX
__MACOSX/

View File

@ -1,7 +1,7 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
exit;
}
/**

View File

@ -11,11 +11,11 @@
}
],
"require": {
"php": "^8.0.2",
"php": ">=8.0.2",
"eftec/bladeone": "^3.52"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3.0",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.8",
"szepeviktor/phpstan-wordpress": "^1.1",

205
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "5612e2dbb336863b2ff9b5006ccbd7b2",
"content-hash": "6fa6e29e5c44798ae9959277f4a2a98a",
"packages": [
{
"name": "eftec/bladeone",
@ -68,16 +68,16 @@
"packages-dev": [
{
"name": "gettext/gettext",
"version": "v4.8.7",
"version": "v4.8.8",
"source": {
"type": "git",
"url": "https://github.com/php-gettext/Gettext.git",
"reference": "3f7bc5ef23302a9059e64934f3d59e454516bec0"
"reference": "302a00aa9d6762c92c884d879c15d3ed05d6a37d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-gettext/Gettext/zipball/3f7bc5ef23302a9059e64934f3d59e454516bec0",
"reference": "3f7bc5ef23302a9059e64934f3d59e454516bec0",
"url": "https://api.github.com/repos/php-gettext/Gettext/zipball/302a00aa9d6762c92c884d879c15d3ed05d6a37d",
"reference": "302a00aa9d6762c92c884d879c15d3ed05d6a37d",
"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.7"
"source": "https://github.com/php-gettext/Gettext/tree/v4.8.8"
},
"funding": [
{
@ -145,20 +145,20 @@
"type": "patreon"
}
],
"time": "2022-08-02T09:42:10+00:00"
"time": "2022-12-08T11:59:50+00:00"
},
{
"name": "gettext/languages",
"version": "2.9.0",
"version": "2.10.0",
"source": {
"type": "git",
"url": "https://github.com/php-gettext/Languages.git",
"reference": "ed56dd2c7f4024cc953ed180d25f02f2640e3ffa"
"reference": "4d61d67fe83a2ad85959fe6133d6d9ba7dddd1ab"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-gettext/Languages/zipball/ed56dd2c7f4024cc953ed180d25f02f2640e3ffa",
"reference": "ed56dd2c7f4024cc953ed180d25f02f2640e3ffa",
"url": "https://api.github.com/repos/php-gettext/Languages/zipball/4d61d67fe83a2ad85959fe6133d6d9ba7dddd1ab",
"reference": "4d61d67fe83a2ad85959fe6133d6d9ba7dddd1ab",
"shasum": ""
},
"require": {
@ -207,7 +207,7 @@
],
"support": {
"issues": "https://github.com/php-gettext/Languages/issues",
"source": "https://github.com/php-gettext/Languages/tree/2.9.0"
"source": "https://github.com/php-gettext/Languages/tree/2.10.0"
},
"funding": [
{
@ -219,20 +219,20 @@
"type": "github"
}
],
"time": "2021-11-11T17:30:39+00:00"
"time": "2022-10-18T15:00:10+00:00"
},
{
"name": "mck89/peast",
"version": "v1.15.0",
"version": "v1.15.1",
"source": {
"type": "git",
"url": "https://github.com/mck89/peast.git",
"reference": "733cd8f62dcb8239094688063a92766bbfcbf523"
"reference": "cf06286910b7efc9dce7503553ebee314df3d3d3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mck89/peast/zipball/733cd8f62dcb8239094688063a92766bbfcbf523",
"reference": "733cd8f62dcb8239094688063a92766bbfcbf523",
"url": "https://api.github.com/repos/mck89/peast/zipball/cf06286910b7efc9dce7503553ebee314df3d3d3",
"reference": "cf06286910b7efc9dce7503553ebee314df3d3d3",
"shasum": ""
},
"require": {
@ -245,7 +245,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.15.0-dev"
"dev-master": "1.15.1-dev"
}
},
"autoload": {
@ -267,9 +267,9 @@
"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.15.0"
"source": "https://github.com/mck89/peast/tree/v1.15.1"
},
"time": "2022-09-13T15:56:53+00:00"
"time": "2023-01-21T13:18:17+00:00"
},
{
"name": "mustache/mustache",
@ -380,25 +380,22 @@
},
{
"name": "php-stubs/wordpress-stubs",
"version": "v6.0.2",
"version": "v6.1.1",
"source": {
"type": "git",
"url": "https://github.com/php-stubs/wordpress-stubs.git",
"reference": "8f696e429e375ef40a841ecf5ac686ff7437b4dc"
"reference": "601c429ba8d91ef50a2a1bec05a7cd38b88064ff"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/8f696e429e375ef40a841ecf5ac686ff7437b4dc",
"reference": "8f696e429e375ef40a841ecf5ac686ff7437b4dc",
"url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/601c429ba8d91ef50a2a1bec05a7cd38b88064ff",
"reference": "601c429ba8d91ef50a2a1bec05a7cd38b88064ff",
"shasum": ""
},
"replace": {
"giacocorsiglia/wordpress-stubs": "*"
},
"require-dev": {
"nikic/php-parser": "< 4.12.0",
"php": "~7.3 || ~8.0",
"php-stubs/generator": "^0.8.1",
"php-stubs/generator": "^0.8.3",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpstan": "^1.2"
},
@ -421,34 +418,33 @@
],
"support": {
"issues": "https://github.com/php-stubs/wordpress-stubs/issues",
"source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.0.2"
"source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.1.1"
},
"time": "2022-09-30T17:24:55+00:00"
"time": "2023-02-09T11:10:35+00:00"
},
{
"name": "phpstan/extension-installer",
"version": "1.1.0",
"version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/extension-installer.git",
"reference": "66c7adc9dfa38b6b5838a9fb728b68a7d8348051"
"reference": "f06dbb052ddc394e7896fcd1cfcd533f9f6ace40"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/extension-installer/zipball/66c7adc9dfa38b6b5838a9fb728b68a7d8348051",
"reference": "66c7adc9dfa38b6b5838a9fb728b68a7d8348051",
"url": "https://api.github.com/repos/phpstan/extension-installer/zipball/f06dbb052ddc394e7896fcd1cfcd533f9f6ace40",
"reference": "f06dbb052ddc394e7896fcd1cfcd533f9f6ace40",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
"php": "^7.1 || ^8.0",
"phpstan/phpstan": ">=0.11.6"
"composer-plugin-api": "^2.0",
"php": "^7.2 || ^8.0",
"phpstan/phpstan": "^1.8.0"
},
"require-dev": {
"composer/composer": "^1.8",
"phing/phing": "^2.16.3",
"composer/composer": "^2.0",
"php-parallel-lint/php-parallel-lint": "^1.2.0",
"phpstan/phpstan-strict-rules": "^0.11 || ^0.12"
"phpstan/phpstan-strict-rules": "^0.11 || ^0.12 || ^1.0"
},
"type": "composer-plugin",
"extra": {
@ -466,22 +462,22 @@
"description": "Composer plugin for automatic installation of PHPStan extensions",
"support": {
"issues": "https://github.com/phpstan/extension-installer/issues",
"source": "https://github.com/phpstan/extension-installer/tree/1.1.0"
"source": "https://github.com/phpstan/extension-installer/tree/1.2.0"
},
"time": "2020-12-13T13:06:13+00:00"
"time": "2022-10-17T12:59:16+00:00"
},
{
"name": "phpstan/phpstan",
"version": "1.8.6",
"version": "1.10.6",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618"
"reference": "50d089a3e0904b0fe7e2cf2d4fd37d427d64235a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c386ab2741e64cc9e21729f891b28b2b10fe6618",
"reference": "c386ab2741e64cc9e21729f891b28b2b10fe6618",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/50d089a3e0904b0fe7e2cf2d4fd37d427d64235a",
"reference": "50d089a3e0904b0fe7e2cf2d4fd37d427d64235a",
"shasum": ""
},
"require": {
@ -511,7 +507,7 @@
],
"support": {
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.8.6"
"source": "https://github.com/phpstan/phpstan/tree/1.10.6"
},
"funding": [
{
@ -527,7 +523,7 @@
"type": "tidelift"
}
],
"time": "2022-09-23T09:54:39+00:00"
"time": "2023-03-09T16:55:12+00:00"
},
{
"name": "rmccue/requests",
@ -591,16 +587,16 @@
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.7.1",
"version": "3.7.2",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "1359e176e9307e906dc3d890bcc9603ff6d90619"
"reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619",
"reference": "1359e176e9307e906dc3d890bcc9603ff6d90619",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879",
"reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879",
"shasum": ""
},
"require": {
@ -636,31 +632,35 @@
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
"standards",
"static analysis"
],
"support": {
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
},
"time": "2022-06-18T07:21:10+00:00"
"time": "2023-02-22T23:07:41+00:00"
},
{
"name": "symfony/finder",
"version": "v6.0.11",
"version": "v6.2.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "09cb683ba5720385ea6966e5e06be2a34f2568b1"
"reference": "20808dc6631aecafbe67c186af5dcb370be3a0eb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/09cb683ba5720385ea6966e5e06be2a34f2568b1",
"reference": "09cb683ba5720385ea6966e5e06be2a34f2568b1",
"url": "https://api.github.com/repos/symfony/finder/zipball/20808dc6631aecafbe67c186af5dcb370be3a0eb",
"reference": "20808dc6631aecafbe67c186af5dcb370be3a0eb",
"shasum": ""
},
"require": {
"php": ">=8.0.2"
"php": ">=8.1"
},
"require-dev": {
"symfony/filesystem": "^6.0"
},
"type": "library",
"autoload": {
@ -688,7 +688,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/finder/tree/v6.0.11"
"source": "https://github.com/symfony/finder/tree/v6.2.7"
},
"funding": [
{
@ -704,20 +704,20 @@
"type": "tidelift"
}
],
"time": "2022-07-29T07:39:48+00:00"
"time": "2023-02-16T09:57:23+00:00"
},
{
"name": "symfony/polyfill-php73",
"version": "v1.26.0",
"version": "v1.27.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php73.git",
"reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85"
"reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/e440d35fa0286f77fb45b79a03fedbeda9307e85",
"reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85",
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9",
"reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9",
"shasum": ""
},
"require": {
@ -726,7 +726,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.26-dev"
"dev-main": "1.27-dev"
},
"thanks": {
"name": "symfony/polyfill",
@ -767,7 +767,7 @@
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php73/tree/v1.26.0"
"source": "https://github.com/symfony/polyfill-php73/tree/v1.27.0"
},
"funding": [
{
@ -783,35 +783,35 @@
"type": "tidelift"
}
],
"time": "2022-05-24T11:49:31+00:00"
"time": "2022-11-03T14:55:06+00:00"
},
{
"name": "szepeviktor/phpstan-wordpress",
"version": "v1.1.3",
"version": "v1.1.7",
"source": {
"type": "git",
"url": "https://github.com/szepeviktor/phpstan-wordpress.git",
"reference": "e644df734e1bbe95810e0f617d17df091048a94e"
"reference": "979dcb81a01942b576b9fbf72dcb9515c57a4aa8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/e644df734e1bbe95810e0f617d17df091048a94e",
"reference": "e644df734e1bbe95810e0f617d17df091048a94e",
"url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/979dcb81a01942b576b9fbf72dcb9515c57a4aa8",
"reference": "979dcb81a01942b576b9fbf72dcb9515c57a4aa8",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0",
"php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0",
"phpstan/phpstan": "^1.6",
"phpstan/phpstan": "^1.8.7",
"symfony/polyfill-php73": "^1.12.0"
},
"require-dev": {
"composer/composer": "^2.1.14",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"php-parallel-lint/php-parallel-lint": "^1.1",
"phpstan/phpstan-strict-rules": "^1.2",
"phpunit/phpunit": "^8 || ^9",
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6"
"phpunit/phpunit": "^8.0 || ^9.0",
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.8"
},
"type": "phpstan-extension",
"extra": {
@ -840,7 +840,7 @@
],
"support": {
"issues": "https://github.com/szepeviktor/phpstan-wordpress/issues",
"source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.1.3"
"source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.1.7"
},
"funding": [
{
@ -852,20 +852,20 @@
"type": "github"
}
],
"time": "2022-09-22T13:14:50+00:00"
"time": "2023-02-04T13:10:27+00:00"
},
{
"name": "wp-cli/i18n-command",
"version": "v2.4.0",
"version": "v2.4.2",
"source": {
"type": "git",
"url": "https://github.com/wp-cli/i18n-command.git",
"reference": "45bc2b47a4ed103b871cd2ec5b483ab55ad12d99"
"reference": "43d5cf8968dbddf90907083ad048f12be5ca3d43"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/45bc2b47a4ed103b871cd2ec5b483ab55ad12d99",
"reference": "45bc2b47a4ed103b871cd2ec5b483ab55ad12d99",
"url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/43d5cf8968dbddf90907083ad048f12be5ca3d43",
"reference": "43d5cf8968dbddf90907083ad048f12be5ca3d43",
"shasum": ""
},
"require": {
@ -918,9 +918,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.4.0"
"source": "https://github.com/wp-cli/i18n-command/tree/v2.4.2"
},
"time": "2022-07-04T21:43:20+00:00"
"time": "2023-02-17T18:14:41+00:00"
},
{
"name": "wp-cli/mustangostang-spyc",
@ -975,22 +975,31 @@
},
{
"name": "wp-cli/php-cli-tools",
"version": "v0.11.15",
"version": "v0.11.17",
"source": {
"type": "git",
"url": "https://github.com/wp-cli/php-cli-tools.git",
"reference": "b6edd35988892ea1451392eb7a26d9dbe98c836d"
"reference": "f6be76b7c4ee2ef93c9531b8a37bdb7ce42c3728"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/b6edd35988892ea1451392eb7a26d9dbe98c836d",
"reference": "b6edd35988892ea1451392eb7a26d9dbe98c836d",
"url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/f6be76b7c4ee2ef93c9531b8a37bdb7ce42c3728",
"reference": "f6be76b7c4ee2ef93c9531b8a37bdb7ce42c3728",
"shasum": ""
},
"require": {
"php": ">= 5.3.0"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"wp-cli/wp-cli-tests": "^3.1.6"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.11.x-dev"
}
},
"autoload": {
"files": [
"lib/cli/cli.php"
@ -1023,22 +1032,22 @@
],
"support": {
"issues": "https://github.com/wp-cli/php-cli-tools/issues",
"source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.15"
"source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.17"
},
"time": "2022-08-15T10:15:55+00:00"
"time": "2023-01-12T01:18:21+00:00"
},
{
"name": "wp-cli/wp-cli",
"version": "v2.6.0",
"version": "v2.7.1",
"source": {
"type": "git",
"url": "https://github.com/wp-cli/wp-cli.git",
"reference": "dee13c2baf6bf972484a63f8b8dab48f7220f095"
"reference": "1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/dee13c2baf6bf972484a63f8b8dab48f7220f095",
"reference": "dee13c2baf6bf972484a63f8b8dab48f7220f095",
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76",
"reference": "1ddc754f1c15e56fb2cdd1a4e82bd0ec6ca32a76",
"shasum": ""
},
"require": {
@ -1056,7 +1065,7 @@
"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.1.3"
"wp-cli/wp-cli-tests": "^3.1.6"
},
"suggest": {
"ext-readline": "Include for a better --prompt implementation",
@ -1069,7 +1078,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.6.x-dev"
"dev-master": "2.8.x-dev"
}
},
"autoload": {
@ -1096,7 +1105,7 @@
"issues": "https://github.com/wp-cli/wp-cli/issues",
"source": "https://github.com/wp-cli/wp-cli"
},
"time": "2022-01-25T16:31:27+00:00"
"time": "2022-10-17T23:10:42+00:00"
},
{
"name": "wp-coding-standards/wpcs",
@ -1156,7 +1165,7 @@
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
"php": "^8.0.2"
"php": ">=8.0.2"
},
"platform-dev": [],
"plugin-api-version": "2.3.0"