Skip to content

Commit

Permalink
Merge pull request #86 from sectsect/phpstan2
Browse files Browse the repository at this point in the history
chore(phpstan): upgrade PHPStan to v2.0
  • Loading branch information
sectsect authored Nov 27, 2024
2 parents bc007c4 + a6b6fa8 commit 466dedd
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 110 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"yoast/phpunit-polyfills": "^2.0",
"squizlabs/php_codesniffer": "^3.7",
"wp-coding-standards/wpcs": "^3.0",
"phpstan/phpstan": "^1.12",
"szepeviktor/phpstan-wordpress": "^1.3",
"phpstan/phpstan": "^2.0",
"szepeviktor/phpstan-wordpress": "2.x-dev",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.2"
"phpstan/phpstan-deprecation-rules": "^2.0"
},
"license": "GPL-3.0+",
"authors": [
Expand Down
137 changes: 31 additions & 106 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function wto_array_diff_interactive( array $array_1, array $array_2 ): array {
/**
* Retrieves all non-hierarchical taxonomies in WordPress, excluding the built-in `post_format` taxonomy.
*
* @return array<string, WP_Taxonomy> An array of non-hierarchical taxonomies.
* @return list<WP_Taxonomy> An array of non-hierarchical taxonomies.
*/
function wto_get_non_hierarchical_taxonomies(): array {
$args = array(
Expand Down

0 comments on commit 466dedd

Please sign in to comment.