Blueprint function call

I have a problem with inserting options into field in plugin blueprint like it is suggested in Documentation My field definition looks like this:

          type: select
          label: Parent
          classes: fancy
          data-options@: '\Grav\Plugin\Backblaze::getBucketList'
            'default': 'default'

and i know the function returns data in array like this:

array [
  "name1" => "name1"
  "name2" => "name2"

But the plugin config page throws an error and shows huge Sfdump with no clue what is wrong. Am I using wrong formatting, or is it something else? In the documentation example they use function ‘\Grav\Common\Page\Pages::parentsRawRoutes’ and that returns an array too.

Thanks for any help.

If I remember correctly, Grav now uses @data-options instead of data-options@, but I think both still works.
Also, maybe you can try to wrap it inside single quotation mark like this:

'@data-options': '\Grav\Common\Page\Pages::parents'
'@data-default': '\Grav\Plugin\admin::route'

At least it works for me!

Thanks so much for your answer. In the end I found the problem was the fact that the function returning the data options was not static.