Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
IanDelMar committed Sep 30, 2024
2 parents 04620a7 + dc1e3c3 commit 34c15b2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 74 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/.gitattributes export-ignore
/.editorconfig export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/README.md export-ignore
/finder.php export-ignore
/functionMap.php export-ignore
Expand Down
58 changes: 0 additions & 58 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"phpdocumentor/reflection-docblock": "^5.4.1",
"phpstan/phpstan": "^1.10.49",
"phpunit/phpunit": "^9.5",
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.1.1",
"wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
},
"suggest": {
Expand Down
7 changes: 0 additions & 7 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
<exclude name="PEAR.Commenting.FileComment"/>
</rule>

<rule ref="Squiz.WhiteSpace.FunctionSpacing">
<properties>
<property name="spacingBeforeFirst" value="0"/>
<property name="spacingAfterLast" value="0"/>
</properties>
</rule>

<!-- Rules not applied to tests -->
<rule ref="SlevomatCodingStandard.Functions.FunctionLength.FunctionLength">
<exclude-pattern>tests/TypeInferenceTest.php</exclude-pattern>
Expand Down
2 changes: 1 addition & 1 deletion source/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-sodium": "*",
"johnpbloch/wordpress": "6.6.0"
"johnpbloch/wordpress": "6.6.2"
},
"minimum-stability": "stable",
"config": {
Expand Down
2 changes: 1 addition & 1 deletion tests/data/Faker.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use function PHPStan\Testing\assertType;

// Boleans
// Booleans
assertType('bool', Faker::bool());
assertType('true', Faker::true());
assertType('false', Faker::false());
Expand Down
13 changes: 8 additions & 5 deletions wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -89743,9 +89743,8 @@ function _wp_admin_bar_init()
* the function is also called late on {@see 'wp_footer'}.
*
* It includes the {@see 'admin_bar_menu'} action which should be used to hook in and
* add new menus to the admin bar. That way you can be sure that you are adding at most
* optimal point, right before the admin bar is rendered. This also gives you access to
* the `$post` global, among others.
* add new menus to the admin bar. This also gives you access to the `$post` global,
* among others.
*
* @since 3.1.0
* @since 5.4.0 Called on 'wp_body_open' action first, with 'wp_footer' as a fallback.
Expand Down Expand Up @@ -110300,9 +110299,13 @@ function get_tag_regex($tag)
* $is_utf8 = is_utf8_charset();
*
* @since 6.6.0
* @since 6.6.1 A wrapper for _is_utf8_charset
*
* @param ?string $blog_charset Slug representing a text character encoding, or "charset".
* E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS".
* @see _is_utf8_charset
*
* @param string|null $blog_charset Optional. Slug representing a text character encoding, or "charset".
* E.g. "UTF-8", "Windows-1252", "ISO-8859-1", "SJIS".
* Default value is to infer from "blog_charset" option.
* @return bool Whether the slug represents the UTF-8 encoding.
*/
function is_utf8_charset($blog_charset = \null)
Expand Down

0 comments on commit 34c15b2

Please sign in to comment.