Skip to content

Commit 1800164

Browse files
authored
Fixes
1 parent 6cfdfb6 commit 1800164

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Fixed
99

10+
- **Bug**: Removed a redundant `is_array()` check in `es_optimizer_disable_emojis_tinymce()` after adding a strict `array` parameter type, resolving a PHPStan always-true warning on PHP 8.3
1011
- **Critical**: Fixed License URI in plugin header and readme.txt pointing to GPL 2.0 instead of GPL 3.0
1112
- **Critical**: Fixed release workflow producing incomplete zip files missing `languages/` directory and `readme.txt`
1213
- **Bug**: Fixed changelog parser in release workflow that could not match `## [VERSION]` heading format in CHANGELOG.md, resulting in empty release bodies

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
"php": ">=7.4"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "9.*",
18-
"yoast/phpunit-polyfills": "2.*",
19-
"squizlabs/php_codesniffer": "3.*",
20-
"wp-coding-standards/wpcs": "3.*",
21-
"phpcsstandards/phpcsextra": "1.*",
22-
"dealerdirect/phpcodesniffer-composer-installer": "1.*",
23-
"friendsofphp/php-cs-fixer": "3.*",
24-
"php-stubs/wordpress-stubs": "6.*",
25-
"szepeviktor/phpstan-wordpress": "2.*",
26-
"phpstan/phpstan": "2.*",
27-
"phpcompatibility/phpcompatibility-wp": "2.*"
17+
"phpunit/phpunit": "^9.*",
18+
"yoast/phpunit-polyfills": "^2.*",
19+
"squizlabs/php_codesniffer": "^3.*",
20+
"wp-coding-standards/wpcs": "^3.*",
21+
"phpcsstandards/phpcsextra": "^1.*",
22+
"dealerdirect/phpcodesniffer-composer-installer": "^1.*",
23+
"friendsofphp/php-cs-fixer": "^3.*",
24+
"php-stubs/wordpress-stubs": "^6.*",
25+
"szepeviktor/phpstan-wordpress": "^2.*",
26+
"phpstan/phpstan": "^2.*",
27+
"phpcompatibility/phpcompatibility-wp": "^2.*"
2828
},
2929
"scripts": {
3030
"phpcs": "phpcs --standard=phpcs.xml",

enginescript-site-optimizer.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,7 @@ function es_optimizer_add_settings_link( array $links ): array {
767767
* @param array $plugins Array of TinyMCE plugins.
768768
* @return array Difference betwen the two arrays.
769769
*/
770-
function es_optimizer_disable_emojis_tinymce( $plugins ): array {
771-
if ( ! is_array( $plugins ) ) {
772-
$plugins = array();
773-
}
770+
function es_optimizer_disable_emojis_tinymce( array $plugins ): array {
774771
return array_diff( $plugins, array( 'wpemoji' ) );
775772
}
776773

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ No, the plugin has a simple interface where you can toggle features on and off.
4444
== Changelog ==
4545

4646
= Unreleased =
47+
* **BUG FIX**: Removed a redundant `is_array()` check in `es_optimizer_disable_emojis_tinymce()` after adding a strict `array` parameter type, resolving a PHPStan always-true warning on PHP 8.3
4748
* **BUG FIX (Critical)**: Fixed License URI pointing to GPL 2.0 instead of GPL 3.0 in plugin header and readme.txt
4849
* **BUG FIX (Critical)**: Fixed release workflow producing incomplete zip files missing `languages/` directory and `readme.txt`
4950
* **BUG FIX**: Fixed changelog parser in release workflow that could not match heading format in CHANGELOG.md

0 commit comments

Comments
 (0)