ACF PRO stubs for static analysis
It provides stub declarations for ACF Pro
core functions, classes and interfaces.
These stubs can help plugin and theme developers leverage static analysis tools
like PHPStan.
The stubs are generated from wpengine/advanced-custom-fields-pro
using php-stubs/generator.
Require this package as a development dependency with Composer.
composer require --dev php-stubs/acf-pro-stubs
Alternatively you may download acf-pro-stubs.php
directly.
This package is versioned to match the ACF Pro version from which the stubs are generated.
cd
into itcomposer install
apt-get install xmlstarlet unzip git
./release-latest-versions.sh
This will update acf-pro-stubs.php
per version, tag and commit it.