get_declared_traits
symfony/var-dumper
Supported Versions: PHP 5 >= 5.4.0, PHP 7, PHP 8
Returns an array of all declared traits
<?php get_declared_traits
(): array