Skip to content

Fix duplicate block registration. #29

Fix duplicate block registration.

Fix duplicate block registration. #29

Triggered via push June 1, 2023 09:24
Status Failure
Total duration 40s
Artifacts

ci.yaml

on: push
Matrix: phplint / phplint
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan / phpstan: src/Addon.php#L38
Method Pronamic\WordPress\Pay\Fundraising\Addon::instance() has parameter $args with no value type specified in iterable type array.
phpstan / phpstan: src/Addon.php#L40
Parameter #1 $args of class Pronamic\WordPress\Pay\Fundraising\Addon constructor expects array, array|object|string given.
phpstan / phpstan: src/Addon.php#L72
Method Pronamic\WordPress\Pay\Fundraising\Addon::__construct() has parameter $args with no value type specified in iterable type array.
phpstan / phpstan: src/BlockUpdater.php#L30
Property Pronamic\WordPress\Pay\Fundraising\BlockUpdater::$block_names type has no value type specified in iterable type array.
phpstan / phpstan: src/BlockUpdater.php#L86
Method Pronamic\WordPress\Pay\Fundraising\BlockUpdater::update_post() has no return typehint specified.
phpstan / phpstan: src/BlockUpdater.php#L128
Method Pronamic\WordPress\Pay\Fundraising\BlockUpdater::allow_unfiltered_html() has parameter $capabilities with no value type specified in iterable type array.
phpstan / phpstan: src/BlockUpdater.php#L128
Method Pronamic\WordPress\Pay\Fundraising\BlockUpdater::allow_unfiltered_html() has parameter $capability with no value type specified in iterable type array.
phpstan / phpstan: src/BlockUpdater.php#L128
Method Pronamic\WordPress\Pay\Fundraising\BlockUpdater::allow_unfiltered_html() return type has no value type specified in iterable type array.
phpstan / phpstan: src/BlockUpdater.php#L150
Parameter #1 $blocks of function serialize_blocks expects array<WP_Block_Parser_Block>, array<array> given.
phpstan / phpstan: src/BlockUpdater.php#L161
Method Pronamic\WordPress\Pay\Fundraising\BlockUpdater::update_block() has parameter $block with no value type specified in iterable type array.