Skip to content

Commit c9bc510

Browse files
minor #30023 [Config] fix compat with wrapping autoloaders (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [Config] fix compat with wrapping autoloaders | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Registering this private method as autoloader works, until one wants to decorate autoloaders (like our DebugClassLoader does.) Commits ------- 695d84be4c [Config] fix compat with wrapping autoloaders
2 parents 48aa9dc + fcbdbe3 commit c9bc510

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Resource/ClassExistenceResource.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ public function unserialize($serialized)
118118

119119
/**
120120
* @throws \ReflectionException When $class is not found and is required
121+
*
122+
* @internal
121123
*/
122-
private static function throwOnRequiredClass($class)
124+
public static function throwOnRequiredClass($class)
123125
{
124126
if (self::$autoloadedClass === $class) {
125127
return;

0 commit comments

Comments
 (0)