diff --git a/src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php index 1b2122757b..69c6f58a17 100644 --- a/src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php @@ -201,7 +201,7 @@ class QuestionHelperTest extends AbstractQuestionHelperTest public function testAskWithAutocompleteCallback() { - if (!$this->hasSttyAvailable()) { + if (!Terminal::hasSttyAvailable()) { $this->markTestSkipped('`stty` is required to test autocomplete functionality'); } diff --git a/src/Symfony/Contracts/HttpClient/ResponseInterface.php b/src/Symfony/Contracts/HttpClient/ResponseInterface.php index 791be4bc61..8628c8daf1 100644 --- a/src/Symfony/Contracts/HttpClient/ResponseInterface.php +++ b/src/Symfony/Contracts/HttpClient/ResponseInterface.php @@ -74,7 +74,9 @@ interface ResponseInterface public function toArray(bool $throw = true): array; /** - * Cancels the response. + * Closes the response stream and all related buffers. + * + * No further chunk will be yielded after this method has been called. */ public function cancel(): void;