diff --git a/composer.json b/composer.json index 870dcaa8..465733a8 100644 --- a/composer.json +++ b/composer.json @@ -15,8 +15,7 @@ "./vendor/bin/phpcbf -p -n --colors --standard=./phpcs.xml ." ], "cs": "./vendor/bin/phpcs -p -s -n --colors --standard=./phpcs.xml .", - "test:wpunit": "./vendor/bin/codecept run wpunit", - "post-install-cmd": "npm install" + "test:wpunit": "./vendor/bin/codecept run wpunit" }, "minimum-stability": "stable", "require-dev": { diff --git a/modules/advanced-choices/block-types/choices-field.php b/modules/advanced-choices/block-types/choices-field.php index ae604258..a83ba304 100644 --- a/modules/advanced-choices/block-types/choices-field.php +++ b/modules/advanced-choices/block-types/choices-field.php @@ -62,6 +62,6 @@ public function get_block_renderer( $wp_block = null ) { } public function is_allowed_multiple(): bool { - return ! ! ( $this->block_attrs['allow_multiple'] ?? false ); + return (bool) ( $this->block_attrs['allow_multiple'] ?? false ); } }