lighthouseuk/genesis-custom-blocks-pro-stubs

Genesis Custom Blocks Pro stubs for static analysis.

v1.7.0.1 2024-11-13 12:23 UTC

This package is auto-updated.

Last update: 2024-11-13 14:49:27 UTC


README

This package provides stub declarations for Genesis Custom Blocks Pro. It resolves PHPStan errors for block_rows().

Based on the work done in php-stubs/acf-pro-stubs.

Installation

Require this package as a development dependency with Composer.

composer require --dev lighthouseuk/genesis-custom-blocks-pro-stubs

Usage in PHPStan

parameters:
	stubFiles:
		- vendor/lighthouseuk/genesis-custom-blocks-pro-stubs/genesis-custom-blocks-pro-stubs.php

Use scanFiles instead of stubFiles if GCB is not vendored with your project.