minor #19073 Fix the missing colon in get/setInputStream deprecation warning (chalasr)

This PR was merged into the 3.2-dev branch.

Discussion
----------

Fix the missing colon in get/setInputStream deprecation warning

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/pull/19072#discussion_r67310243
| License       | MIT
| Doc PR        | ~

Commits
-------

0d6dc8e Fix the missing colon in get/setInputStream deprecation warning
This commit is contained in:
Nicolas Grekas 2016-06-16 11:28:17 +02:00
commit dbee09298c
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class QuestionHelper extends Helper
*/
public function setInputStream($stream)
{
@trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s:setStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
@trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s::setStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
if (!is_resource($stream)) {
throw new InvalidArgumentException('Input stream must be a valid resource.');
@ -102,7 +102,7 @@ class QuestionHelper extends Helper
public function getInputStream()
{
if (0 === func_num_args() || func_get_arg(0)) {
@trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s:getStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
@trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s::getStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
}
return $this->inputStream;