Skip to content

Commit 1014c0b

Browse files
committed
Adapting code to new getClassMap signature
1 parent afe2875 commit 1014c0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mappers/GlobTypeMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ protected function getClassList(): array
6565
$this->classes = [];
6666
$explorer = new GlobClassExplorer($this->namespace, $this->cache, $this->globTtl, $this->classNameMapper, $this->recursive);
6767
$classes = $explorer->getClassMap();
68-
foreach ($classes as $className => $fileInfo) {
68+
foreach ($classes as $className => $phpFile) {
6969
if (! class_exists($className, false) && ! interface_exists($className, false)) {
7070
// Let's try to load the file if it was not imported yet.
7171
// We are importing the file manually to avoid triggering the autoloader.
7272
// The autoloader might trigger errors if the file does not respect PSR-4 or if the
7373
// Symfony DebugAutoLoader is installed. (see https://github.com/thecodingmachine/graphqlite/issues/216)
74-
require_once $fileInfo->getRealPath();
74+
require_once $phpFile;
7575
// Does it exists now?
7676
if (! class_exists($className, false) && ! interface_exists($className, false)) {
7777
continue;

0 commit comments

Comments
 (0)