Added return typehint

This commit is contained in:
Alejandro Celaya 2017-10-12 11:59:22 +02:00
parent 70264be8e7
commit 391ef5c323

View file

@ -35,7 +35,7 @@ class JsonErrorResponseGenerator implements ErrorResponseGeneratorInterface, Sta
* @param string $responsePhrase * @param string $responsePhrase
* @return string * @return string
*/ */
protected function responsePhraseToCode($responsePhrase) protected function responsePhraseToCode($responsePhrase): string
{ {
return strtoupper(str_replace(' ', '_', $responsePhrase)); return strtoupper(str_replace(' ', '_', $responsePhrase));
} }