File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Symfony/Component/Debug Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -138,14 +138,14 @@ public function loadClass($class)
138
138
try {
139
139
if ($ this ->isFinder && !isset ($ this ->loaded [$ class ])) {
140
140
$ this ->loaded [$ class ] = true ;
141
- if ($ file = $ this ->classLoader [0 ]->findFile ($ class ) ?: false ) {
142
- $ wasCached = \function_exists ( ' opcache_is_script_cached ' ) && @ opcache_is_script_cached ( $ file );
143
-
141
+ if (! $ file = $ this ->classLoader [0 ]->findFile ($ class ) ?: false ) {
142
+ // no-op
143
+ } elseif ( \function_exists ( ' opcache_is_script_cached ' ) && @ opcache_is_script_cached ( $ file )) {
144
144
require $ file ;
145
145
146
- if ( $ wasCached ) {
147
- return ;
148
- }
146
+ return ;
147
+ } else {
148
+ require $ file ;
149
149
}
150
150
} else {
151
151
\call_user_func ($ this ->classLoader , $ class );
You can’t perform that action at this time.
0 commit comments