lighthouseuk / genesis-custom-blocks-pro-stubs
Genesis Custom Blocks Pro stubs for static analysis.
v1.7.0.1
2024-11-13 12:23 UTC
Requires
- php-stubs/wordpress-stubs: ^4.7 || ^5.0 || ^6.0
Requires (Dev)
- php: ~7.4 || ^8.0
- php-stubs/generator: ^0.8
- phpdocumentor/reflection-docblock: ^5.4.1
- phpstan/phpstan: ^1.11
Suggests
- symfony/polyfill-php73: Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
- szepeviktor/phpstan-wordpress: WordPress extensions for PHPStan
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.