chan-sccp / PAMI

Fork of PHP Asterisk Manager Interface ( AMI ) supports synchronous command ( action )/ responses and asynchronous events using the pattern observer-listener. Supports commands with responses with multiple events. Very suitable for development of operator consoles and / or asterisk / channels / peers monitoring through SOA, etc
http://marcelog.github.com/PAMI
Apache License 2.0
26 stars 21 forks source link

PAMI\Message\Message::getKey() wrong return type in PHPDoc #24

Open 7-zete-7 opened 2 years ago

7-zete-7 commented 2 years ago

In PHPDoc return type is string, but PAMI\Message\Message::$keys can also contains any of types returned by PAMI\Message\Message::sanitizeInput() method.

Can be reproduced by code:

$message = new PAMI\Message\Response\GenericResponse("Foo: 123\r\n");
$fooValue = $message->getKey('Foo');

echo gettype($fooValue); // => integer