File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 44[ ![ Packagist] ( https://img.shields.io/packagist/v/php-stubs/wordpress-stubs.svg?color=4CC61E&style=popout )] ( https://packagist.org/packages/php-stubs/wordpress-stubs )
55[ ![ Packagist stats] ( https://img.shields.io/packagist/dt/php-stubs/wordpress-stubs.svg )] ( https://packagist.org/packages/php-stubs/wordpress-stubs/stats )
66
7- This package is a fork of ` giacocorsiglia/wordpress-stubs ` .
87It provides stub declarations for [ WordPress] ( https://wordpress.org/ )
98core functions, classes and interfaces, ** globals are not included** .
109These stubs can help plugin and theme developers leverage static analysis tools
11- like [ PHPStan] ( https://github.com/phpstan/phpstan ) ,
12- which is not able to parse WordPress as it is not OOP code.
10+ like [ PHPStan] ( https://github.com/phpstan/phpstan ) .
1311
14- The stubs are generated directly from the [ source ] ( https://github.com/johnpbloch/wordpress-core )
15- using [ giacocorsiglia/stubs- generator] ( https://github.com/GiacoCorsiglia/ php-stubs- generator ) .
12+ The stubs are generated from [ @ johnpbloch 's package ] ( https://github.com/johnpbloch/wordpress-core )
13+ using [ php-stubs/ generator] ( https://github.com/php-stubs/ generator ) .
1614
1715### Requirements
1816
19- - PHP >= 7.1
17+ - PHP 7.1+
2018- Sodium PHP extension as latest WordPress core uses it and ** compat code is removed** from stubs,
2119 Sodium is included in PHP from version 7.2, in 7.1 issue ` pecl install libsodium `
2220 or install the ` paragonie/sodium_compat ` package
You can’t perform that action at this time.
0 commit comments