GetTextSize is undefined?

Hi, I would like to try to use the GetTextSize static function (specified here in the docs) to fit text within some bounds (I need to use this function because of the additional functionality compared to calling measureText on the rendering context, which only gets the width). But, the path to the function specified in the comments of the code (Phaser.GameObjects.Text.GetTextSize) seems to be undefined. I can’t find any examples online of using this function, outside of the code for the Text class itself. Is this not meant for general use?

I ended up just copying the functions from the source code into my project for now.

This is a valid concern - I can’t figure out how to call MeasureText method either.
It’s definitely in the phaser source (current phaser.js version, line 140242) but it’s not callable where it says it will be.
From the doc or even the comment in the phaser source code:

 Phaser.GameObjects.Text.MeasureText

I think this is a bug.

(MeasureText would be needed to even call GetTextSize for the required attribute. - Seems to be the same problem.)