Zend certified PHP/Magento developer

Magento 2 modules and PHP 8.2

I’m struggling with PHP 8.2 and some Magento modules I inherited with a site.

I believe the errors are specifically because of PHP 8.2

For example:
main.CRITICAL: Exception: Deprecated Functionality: Creation of dynamic property SomethingSomethingHelperIndex::$attributeRepository is deprecated in

This is the line of code that it specifically references in the error

this->attributeRepository = $attributeRepository;

How do you even start to debug this? Can I add logging in to see where the error is? I believe it’s down to dynamic attributes but I could be wrong?