Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295586

Use setPSR4() instead of addPSR4() to avoid making the PSR-4 list bigger and bigger in the autoloader during test runs

$
0
0

Follow-up to #2408371: Proxies of module interfaces don't work

Problem/Motivation

- addPSR4() during test runs ads more and more PSR-4 data to the autoloader, which is a small memory leak.

Proposed resolution

- Use setPSR4() instead of addPSR4(), because there is no way to reset the autoloader's state and the composer autoloader itself is a singleton.

Remaining tasks

- Do it

User interface changes

- None

API changes

- None

Data model changes

- None


Viewing all articles
Browse latest Browse all 295586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>