File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,6 @@ parameters:
6060 count : 1
6161 path : src/Cookie.php
6262
63- -
64- message : " #^Parameter \\ #1 \\ $string of function rtrim expects string, string\\ |null given\\ .$#"
65- count : 1
66- path : src/Cookie.php
67-
6863 -
6964 message : " #^Class Http\\\\ Message\\\\ CookieJar implements generic interface IteratorAggregate but does not specify its types\\ : TKey, TValue$#"
7065 count : 1
Original file line number Diff line number Diff line change @@ -511,7 +511,9 @@ private function normalizeDomain($domain)
511511 */
512512 private function normalizePath ($ path )
513513 {
514- $ path = rtrim ($ path , '/ ' );
514+ if (null !== $ path ) {
515+ $ path = rtrim ($ path , '/ ' );
516+ }
515517
516518 if (empty ($ path ) or '/ ' !== substr ($ path , 0 , 1 )) {
517519 $ path = '/ ' ;
You can’t perform that action at this time.
0 commit comments