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:
commit
dbee09298c
@ -82,7 +82,7 @@ class QuestionHelper extends Helper
|
|||||||
*/
|
*/
|
||||||
public function setInputStream($stream)
|
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)) {
|
if (!is_resource($stream)) {
|
||||||
throw new InvalidArgumentException('Input stream must be a valid resource.');
|
throw new InvalidArgumentException('Input stream must be a valid resource.');
|
||||||
@ -102,7 +102,7 @@ class QuestionHelper extends Helper
|
|||||||
public function getInputStream()
|
public function getInputStream()
|
||||||
{
|
{
|
||||||
if (0 === func_num_args() || func_get_arg(0)) {
|
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;
|
return $this->inputStream;
|
||||||
|
Reference in New Issue
Block a user