You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@trigger_error('Passing a Session object to the ExpectationException constructor is deprecated as of Mink 1.7. Pass the driver instead.', E_USER_DEPRECATED);
45
-
46
-
$this->session = $driver;
47
-
$this->driver = $driver->getDriver();
48
-
} elseif (!$driverinstanceof DriverInterface) {
49
-
// Trigger an exception as we cannot typehint a disjunction
50
-
thrownew \InvalidArgumentException('The ExpectationException constructor expects a DriverInterface or a Session.');
51
-
} else {
52
-
$this->driver = $driver;
53
-
}
38
+
$this->driver = $driver;
54
39
55
40
if (!$message && null !== $exception) {
56
41
$message = $exception->getMessage();
@@ -96,24 +81,6 @@ protected function getDriver()
96
81
return$this->driver;
97
82
}
98
83
99
-
/**
100
-
* Returns exception session.
101
-
*
102
-
* @return Session
103
-
*
104
-
* @deprecated since 1.7, to be removed in 2.0. Use getDriver and the driver API instead.
105
-
*/
106
-
protectedfunctiongetSession()
107
-
{
108
-
if (null === $this->session) {
109
-
thrownew \LogicException(sprintf('The deprecated method %s cannot be used when passing a driver in the constructor', __METHOD__));
110
-
}
111
-
112
-
@trigger_error(sprintf('The method %s is deprecated as of Mink 1.7 and will be removed in 2.0. Use getDriver and the driver API instead.', __METHOD__), E_USER_DEPRECATED);
0 commit comments