Skip to content

Commit c95385a

Browse files
dunglasOndraM
authored andcommitted
Fix the PHPDoc's types of Cookie.php
1 parent baae19b commit c95385a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/Cookie.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function setPath($path)
104104
}
105105

106106
/**
107-
* @return string
107+
* @return string|null
108108
*/
109109
public function getPath()
110110
{
@@ -126,7 +126,7 @@ public function setDomain($domain)
126126
}
127127

128128
/**
129-
* @return string
129+
* @return string|null
130130
*/
131131
public function getDomain()
132132
{
@@ -144,7 +144,7 @@ public function setExpiry($expiry)
144144
}
145145

146146
/**
147-
* @return int
147+
* @return int|null
148148
*/
149149
public function getExpiry()
150150
{
@@ -162,7 +162,7 @@ public function setSecure($secure)
162162
}
163163

164164
/**
165-
* @return bool
165+
* @return bool|null
166166
*/
167167
public function isSecure()
168168
{
@@ -180,7 +180,7 @@ public function setHttpOnly($httpOnly)
180180
}
181181

182182
/**
183-
* @return bool
183+
* @return bool|null
184184
*/
185185
public function isHttpOnly()
186186
{

lib/WebDriverOptions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function deleteCookieNamed($name)
9090
* Get the cookie with a given name.
9191
*
9292
* @param string $name
93-
* @return Cookie The cookie, or null if no cookie with the given name is presented.
93+
* @return Cookie|null The cookie, or null if no cookie with the given name is presented.
9494
*/
9595
public function getCookieNamed($name)
9696
{

0 commit comments

Comments
 (0)