[8.x] Make sure trait_uses_recursive returns an array (#36335)
[8.x] Make sure trait_uses_recursive returns an array (#36335)

* Make sure trait_uses_recursive returns an array

`class_uses` returns false on error.
https://www.php.net/manual/en/function.class-uses.php#refsect1-function.class-uses-returnvalues

* Fix typo

* Update helpers.php

Co-authored-by: Taylor Otwell <5d74ae093a16a00e5af127763f2dc7e13988f162@laravel.com>
morrislaptop/framework,bytestream/framework,hafezdivandari/framework,JamesForks/framework,arturock/framework,dwightwatson/framework,crynobone/framework,stevebauman/framework,samlev/framework,tomschlick/framework,leo108/laravel_framework,mul14/laravel-framework,dwightwatson/framework,JamesForks/framework,lucasmichot/framework,mul14/laravel-framework,driesvints/framework,notebowl/laravel-framework,morrislaptop/framework,laravel/framework,tomschlick/framework,lucasmichot/framework,leo108/laravel_framework,mul14/laravel-framework,driesvints/framework,notebowl/laravel-framework,bytestream/framework,crynobone/framework,arturock/framework,tomschlick/framework,stevebauman/framework,arturock/framework,hafezdivandari/framework,mul14/laravel-framework,samlev/framework,laravel/framework