From e42d1412ff970ebfbe6644ee63746cfc9c5cbac2 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 30 Sep 2020 17:28:20 +0200 Subject: [PATCH 1/2] Adjust expired range check Include current second when deciding if cooke has expired. --- Cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cookie.php b/Cookie.php index e6159da7..b57af034 100644 --- a/Cookie.php +++ b/Cookie.php @@ -296,6 +296,6 @@ public function isHttpOnly() */ public function isExpired() { - return null !== $this->expires && 0 != $this->expires && $this->expires < time(); + return null !== $this->expires && 0 != $this->expires && $this->expires <= time(); } } From af09f2f90d0b5f8ee2cd97b0c5137c6c7c9b5866 Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Fri, 2 Oct 2020 09:32:33 +0200 Subject: [PATCH 2/2] [4.4] Ignore more deprecations for Mockery mocks --- Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client.php b/Client.php index 4c42f53d..ce6e34ea 100644 --- a/Client.php +++ b/Client.php @@ -314,7 +314,7 @@ public function clickLink(string $linkText): Crawler */ public function submit(Form $form, array $values = []/*, array $serverParameters = []*/) { - 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) { + 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 && !$this instanceof \Mockery\MockInterface) { @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); }