Skip to content

Commit e9fd572

Browse files
committed
consider the merge of #511
1 parent 14f840b commit e9fd572

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Index/Index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Index implements ReadableIndex, \Serializable
1717
/**
1818
* An associative array that maps fully qualified names to
1919
* an associative array that maps fully qualified symbol names
20-
* to global Definitions, e.g. :
20+
* to Definitions, e.g. :
2121
* [
2222
* 'Psr\Log\LoggerInterface' => [
2323
* 'Psr\Log\LoggerInterface->log()' => $definition,
@@ -31,7 +31,7 @@ class Index implements ReadableIndex, \Serializable
3131

3232
/**
3333
* An associative array that maps fully qualified symbol names
34-
* to global Definitions
34+
* to global (ie non member) Definitions
3535
*
3636
* @var Definition[]
3737
*/
@@ -307,7 +307,7 @@ public function serialize()
307307
*/
308308
private function setGlobalDefinition(string $fqn, Definition $definition)
309309
{
310-
if ($definition->isGlobal) {
310+
if ($definition->isMember) {
311311
$this->globalDefinitions[$fqn] = $definition;
312312
}
313313
}

0 commit comments

Comments
 (0)