Not a bug. GetPlayerIdentifiers is a compatibility wrapper specific to porting CitizenMP.Server Lua scripts to FXServer.
As you can see in the code you pasted, this is the canonical way using natives. FYI: you don’t need let to be able to push an array - you can still use const.