php-stubs / acf-pro-stubs

ACF PRO stubs for static analysis
https://www.advancedcustomfields.com/changelog/
MIT License
53 stars 12 forks source link

Fatal error: Cannot redeclare determine_locale() #17

Open szepeviktor opened 2 weeks ago

szepeviktor commented 2 weeks ago

https://github.com/php-stubs/acf-pro-stubs/blob/2a16e7503bc18e182beed2cd9a0acc551b1c90c8/generate.sh#L28-L29

test

php -r 'require "../wordpress-stubs/wordpress-stubs.php"; require "acf-pro-stubs.php";'
szepeviktor commented 2 weeks ago

If I would maintain this repo I would remove all commits from the last 4 hours ...

But it is You!

juhojama commented 2 weeks ago

Sorry for the inconvenience.

If I would maintain this repo I would remove all commits from the last 4 hours

No problem, will do.

szepeviktor commented 2 weeks ago

That regexp needs to work on lines beginning with spaces. Now the stubs have namespace {