Getting warnings re: class-wp-roles.php on line 290

Bug Summary

Getting the following warnings via front-end and back-end:
-( ! ) Warning: Illegal string offset ‘capabilities’ in /Users/x/xx/xxx/app/public/wp-includes/class-wp-roles.php on line 290
-( ! ) Warning: Illegal string offset ‘name’ in /Users/x/xx/xxx/app/public/wp-includes/class-wp-roles.php on line 291

Steps to reproduce

Start Site, Open Site or Admin

Environment Info

-macOS Big Sur v11.6
-both, Local v6.14 & Local Beta 6.15
-both, PHP 7.4 & 8.0
-renamed plugins folder and using twentytwentyone theme

Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

Screenshot:

Log:

A post was merged into an existing topic: Fatal error : Cannot access offset of type string on string in “class-wp-roles.php” on line 290