wordpress-stubs icon indicating copy to clipboard operation
wordpress-stubs copied to clipboard

Tests for functionMap.php

Open IanDelMar opened this issue 2 years ago • 1 comments

As the function map expands, we should incorporate some checks. I suggest:

  • [ ] Relocating the parameter name check outside the visitor.
  • [ ] Verifying whether types have already been added through other parts of the visitor.
  • [x] Ensuring the uniqueness of map entries.
  • [ ] Checking for unmatched parentheses.

IanDelMar avatar Nov 01 '23 14:11 IanDelMar

Ensuring the uniqueness of map entries.

PHPStan does this with every array. https://phpstan.org/r/e722f28d-3c0d-4077-8996-8819813abaad Resolved in #126

szepeviktor avatar Nov 01 '23 17:11 szepeviktor