Skip to content

Commit 33ac60e

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Remove Google references when not needed Simplify usage of dirname() Remove Google references when not needed
2 parents e226482 + 1b5a6fd commit 33ac60e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DeprecationErrorHandler/Deprecation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private static function getVendors()
267267
foreach (get_declared_classes() as $class) {
268268
if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) {
269269
$r = new \ReflectionClass($class);
270-
$v = \dirname(\dirname($r->getFileName()));
270+
$v = \dirname($r->getFileName(), 2);
271271
if (file_exists($v.'/composer/installed.json')) {
272272
self::$vendors[] = $v;
273273
$loader = require $v.'/autoload.php';

0 commit comments

Comments
 (0)