1
0
Fork 0

Show real version instead of self.version in suggest

pull/608/head
Jordi Boggiano 2012-04-20 20:08:38 +02:00
parent e74e218bdb
commit 870d745475
1 changed files with 5 additions and 0 deletions

View File

@ -166,6 +166,11 @@ class ArrayLoader
}
if (isset($config['suggest']) && is_array($config['suggest'])) {
foreach ($config['suggest'] as $target => $reason) {
if ('self.version' === trim($reason)) {
$config['suggest'][$target] = $package->getPrettyVersion();
}
}
$package->setSuggests($config['suggest']);
}