1
0
Fork 0

consider the merge of #511

pull/451/head
Nicolas MURE 2017-11-13 20:57:22 +01:00
parent 14f840bd2f
commit e9fd572a49
No known key found for this signature in database
GPG Key ID: E5B036F9145C4CAA
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class Index implements ReadableIndex, \Serializable
/**
* An associative array that maps fully qualified names to
* an associative array that maps fully qualified symbol names
* to global Definitions, e.g. :
* to Definitions, e.g. :
* [
* 'Psr\Log\LoggerInterface' => [
* 'Psr\Log\LoggerInterface->log()' => $definition,
@ -31,7 +31,7 @@ class Index implements ReadableIndex, \Serializable
/**
* An associative array that maps fully qualified symbol names
* to global Definitions
* to global (ie non member) Definitions
*
* @var Definition[]
*/
@ -307,7 +307,7 @@ class Index implements ReadableIndex, \Serializable
*/
private function setGlobalDefinition(string $fqn, Definition $definition)
{
if ($definition->isGlobal) {
if ($definition->isMember) {
$this->globalDefinitions[$fqn] = $definition;
}
}