File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Tests/DeprecationErrorHandler Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ private static function getVendors()
249
249
foreach (get_declared_classes () as $ class ) {
250
250
if ('C ' === $ class [0 ] && 0 === strpos ($ class , 'ComposerAutoloaderInit ' )) {
251
251
$ r = new \ReflectionClass ($ class );
252
- $ v = \dirname ($ r ->getFileName (), 2 );
252
+ $ v = \dirname (\dirname ( $ r ->getFileName ()) );
253
253
if (file_exists ($ v .'/composer/installed.json ' )) {
254
254
self ::$ vendors [] = $ v ;
255
255
$ loader = require $ v .'/autoload.php ' ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function testItCanTellWhetherItIsInternal()
29
29
{
30
30
$ r = new \ReflectionClass (Deprecation::class);
31
31
32
- if (dirname ($ r ->getFileName (), 2 ) !== dirname (__DIR__ , 2 )) {
32
+ if (\ dirname (\dirname ( $ r ->getFileName ())) !== \ dirname (\dirname ( __DIR__ ) )) {
33
33
$ this ->markTestSkipped ('Test case is not compatible with having the bridge in vendor/ ' );
34
34
}
35
35
You can’t perform that action at this time.
0 commit comments