Dynamic type used in static context
Reports usages of dynamic types (
self) in static contexts. Usage of a dynamic type in a static context can be considered confusing as the type will never change.
A quick fix is available to replace the dynamic type usage with its static equivalent.
After the quick fix:
Qodana for Ruby 2023.3, RubyMine 2023.3