John Blackbourn
John Blackbourn
It's just occurred to me that the default value is the incorrect type: ```php public $post_author = 0; ``` I'll have a dig around in WordPress core and see if...
I think this is a duplicate of #3592
I went through all the commands, and this is what I've got: ``` * text=auto .distignore export-ignore .editorconfig export-ignore .gitattributes export-ignore .github export-ignore .gitignore export-ignore .mailmap export-ignore .travis.yml export-ignore behat.yml...
Yep let's ignore `wp-cli.yml`. I didn't see a repo containing `phpcs.xml`. If there is one, then let's ignore that too. I didn't ignore `CONTRIBUTING.md`, `README.md`, and `LICENSE` mostly because I...
It doesn't cause a problem, but it's also not ideal. A program should be aware of the correct places to apply appropriate escaping, not apply escaping just in case.
I have a partially completed fix for this which I started a while ago. It also tidies up the JS for the auto-suggest field. I'll get it finished up and...
That code is long gone, sorry!
Neither of these parameters are optional, this is a bug in the documentation in WordPress core.
Playground link: https://phpstan.org/r/008a73ff-e4cc-4865-b073-ca04cd00a3d0
I updated the Playground link with a more complete example.