Fixing reference issue in GetPublicKeys::getPublicKey

The current((Array)$object)->property isn't allowed in modern PHP strict code.
Improving code documentation