Skip to content

Commit fb900e8

Browse files
committed
fixed error message format
1 parent 0896e04 commit fb900e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Client.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function getCrawler()
190190
{
191191
if (null === $this->crawler) {
192192
@trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED);
193-
// throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__));
193+
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
194194
}
195195

196196
return $this->crawler;
@@ -205,7 +205,7 @@ public function getInternalResponse()
205205
{
206206
if (null === $this->internalResponse) {
207207
@trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED);
208-
// throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__));
208+
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
209209
}
210210

211211
return $this->internalResponse;
@@ -225,7 +225,7 @@ public function getResponse()
225225
{
226226
if (null === $this->response) {
227227
@trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED);
228-
// throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__));
228+
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
229229
}
230230

231231
return $this->response;
@@ -240,7 +240,7 @@ public function getInternalRequest()
240240
{
241241
if (null === $this->internalRequest) {
242242
@trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED);
243-
// throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__));
243+
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
244244
}
245245

246246
return $this->internalRequest;
@@ -260,7 +260,7 @@ public function getRequest()
260260
{
261261
if (null === $this->request) {
262262
@trigger_error(sprintf('Calling the "%s()" method before the "request()" one is deprecated since Symfony 4.1 and will throw an exception in 5.0.', __METHOD__), E_USER_DEPRECATED);
263-
// throw new BadMethodCallException(sprintf('The "request()" method must be called before the "%s()" one', __METHOD__));
263+
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
264264
}
265265

266266
return $this->request;

0 commit comments

Comments
 (0)