Why not just change the assignment in constructor to $this->classLoaders = $classLoaders;?
Better.
Sidenote: I'm surprised this was not detected by PHPStan, we have checkUninitializedProperties: true. Will check that: old issue, but it works only with typed props.
Found in #149