Closed swissspidy closed 6 months ago
There is no function to read this constant.
And you should not read that constant.
Should this go into dynamicConstantNames
too?
Should this go into
dynamicConstantNames
too?
No, this is always a non-empty string - PHPStan does not care what its value is.
Pascal must have a special plugin that is fiddling with translations...
Hehe just working on adding PHPStan to my Preferred Languages plugin :) https://github.com/swissspidy/preferred-languages/pull/961
Having this issue with WP_CONTENT_DIR
too. WP core just refers directly to the constant / no function to read. 🫠
There is WP_Filesystem_Base::wp_content_dir()
but it's not available where I need it. Anyways, I'm rambling. 😅
@gritdigital-mibu Feel free to submit a PR for WP_CONTENT_DIR
:)
Feel free to submit a PR for
WP_CONTENT_DIR
:)
Proposed in https://github.com/szepeviktor/phpstan-wordpress/pull/216
@gritdigital-mibu You've got a new release. https://github.com/szepeviktor/phpstan-wordpress/releases/tag/v1.3.4
Fab.! Ty ❤️
Defined in
wp_set_lang_dir()
.There is no function to read this constant.
Related:
193