Solved: Create FlowQuery Operation - Error

Im trying to follow this guide:
Custom FlowQuery Operations - Extending Neos with PHP & Flow - Manual - Neos CMS - Neos Docs

But i always get this error:
An exception was thrown while Neos tried to render your page Method “randomElement” is not callable in untrusted context

I set up my namespace correctly

File is in:
DistributionPackages/Vendor.Site/Classes/FlowQuery/Operations/RandomElementOperation.php

Namespace:
namespace Vendor\Site\FlowQuery\Operations;

I also added the <?php

What am i doing wrong?

Neos/Flow 7.1

Thanks/ Danke :wink:

edit:

it seems like the file is not recognized because the error message doesnt change, when i delete the php file.

edit2:

i needed to add a helper:
Custom Eel Helpers - Extending Neos with PHP & Flow - Manual - Neos CMS - Neos Docs

ooops :wink: