diff --git a/bin/normalize-callmap.php b/bin/normalize-callmap.php new file mode 100644 index 00000000000..10d16006d18 --- /dev/null +++ b/bin/normalize-callmap.php @@ -0,0 +1,32 @@ +getCodebase(); + +chdir(__DIR__.'/../'); + +foreach (glob("dictionaries/CallMap*.php") as $file) { + $callMap = require $file; + + array_walk_recursive($callMap, function (string &$type): void { + $type = Type::parseString($type === '' ? 'mixed' : $type)->getId(true); + }); + + file_put_contents($file, '