File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313
1414use Psr \Http \Message \RequestInterface ;
1515use Psr \Http \Message \ResponseInterface ;
16+ use Traversable ;
1617
1718/**
1819 * Cookie jar that stores cookies as an array.
@@ -208,12 +209,12 @@ public function setCookie(SetCookie $cookie)
208209 return true ;
209210 }
210211
211- public function count ()
212+ public function count (): int
212213 {
213214 return count ($ this ->cookies );
214215 }
215216
216- public function getIterator ()
217+ public function getIterator (): Traversable
217218 {
218219 return new \ArrayIterator (array_values ($ this ->cookies ));
219220 }
Original file line number Diff line number Diff line change @@ -69,11 +69,11 @@ public function __toString()
6969 /**
7070 * TODO: ?string => string.
7171 */
72- public function getExtension (): ? string
72+ public function getExtension (): string
7373 {
7474 $ clientName = $ this ->getClientFilename ();
7575 $ segments = explode ('. ' , $ clientName );
76- return end ($ segments );
76+ return ( string ) end ($ segments );
7777 }
7878
7979 public function getMimeType (): string
You can’t perform that action at this time.
0 commit comments