Skip to content

Commit 1b5a6fd

Browse files
committed
Simplify usage of dirname()
1 parent b592dcb commit 1b5a6fd

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
@@ -269,7 +269,7 @@ private static function getVendors()
269269
foreach (get_declared_classes() as $class) {
270270
if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) {
271271
$r = new \ReflectionClass($class);
272-
$v = \dirname(\dirname($r->getFileName()));
272+
$v = \dirname($r->getFileName(), 2);
273273
if (file_exists($v.'/composer/installed.json')) {
274274
self::$vendors[] = $v;
275275
$loader = require $v.'/autoload.php';

0 commit comments

Comments
 (0)