Skip to content

Commit 6a0e997

Browse files
committed
Fix CS
1 parent 45cae6d commit 6a0e997

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Client.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function getCookieJar()
199199
public function getCrawler()
200200
{
201201
if (null === $this->crawler) {
202-
@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.', \get_class($this).'::'.__FUNCTION__), E_USER_DEPRECATED);
202+
@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.', static::class.'::'.__FUNCTION__), E_USER_DEPRECATED);
203203
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
204204
}
205205

@@ -214,7 +214,7 @@ public function getCrawler()
214214
public function getInternalResponse()
215215
{
216216
if (null === $this->internalResponse) {
217-
@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.', \get_class($this).'::'.__FUNCTION__), E_USER_DEPRECATED);
217+
@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.', static::class.'::'.__FUNCTION__), E_USER_DEPRECATED);
218218
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
219219
}
220220

@@ -234,7 +234,7 @@ public function getInternalResponse()
234234
public function getResponse()
235235
{
236236
if (null === $this->response) {
237-
@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.', \get_class($this).'::'.__FUNCTION__), E_USER_DEPRECATED);
237+
@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.', static::class.'::'.__FUNCTION__), E_USER_DEPRECATED);
238238
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
239239
}
240240

@@ -249,7 +249,7 @@ public function getResponse()
249249
public function getInternalRequest()
250250
{
251251
if (null === $this->internalRequest) {
252-
@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.', \get_class($this).'::'.__FUNCTION__), E_USER_DEPRECATED);
252+
@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.', static::class.'::'.__FUNCTION__), E_USER_DEPRECATED);
253253
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
254254
}
255255

@@ -269,7 +269,7 @@ public function getInternalRequest()
269269
public function getRequest()
270270
{
271271
if (null === $this->request) {
272-
@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.', \get_class($this).'::'.__FUNCTION__), E_USER_DEPRECATED);
272+
@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.', static::class.'::'.__FUNCTION__), E_USER_DEPRECATED);
273273
// throw new BadMethodCallException(sprintf('The "request()" method must be called before "%s()".', __METHOD__));
274274
}
275275

@@ -314,8 +314,8 @@ public function clickLink(string $linkText): Crawler
314314
*/
315315
public function submit(Form $form, array $values = []/*, array $serverParameters = []*/)
316316
{
317-
if (\func_num_args() < 3 && __CLASS__ !== \get_class($this) && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) {
318-
@trigger_error(sprintf('The "%s()" method will have a new "array $serverParameters = []" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', \get_class($this).'::'.__FUNCTION__), E_USER_DEPRECATED);
317+
if (\func_num_args() < 3 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) {
318+
@trigger_error(sprintf('The "%s()" method will have a new "array $serverParameters = []" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', static::class.'::'.__FUNCTION__), E_USER_DEPRECATED);
319319
}
320320

321321
$form->setValues($values);

0 commit comments

Comments
 (0)