Creates $this->connection() for static methods
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3241155. --> Reported by: [danchadwick](https://www.drupal.org/user/504278) >>> <p>Using drupal 8.9 and rector 0.11.3, references to the database inside static methods of something like a controller reference <code>$this-&gt;connection()-&gt;</code> when $this is not available in static methods.</p>
issue