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:
60
60
count : 1
61
61
path : src/Cookie.php
62
62
63
- -
64
- message : " #^Parameter \\ #1 \\ $string of function rtrim expects string, string\\ |null given\\ .$#"
65
- count : 1
66
- path : src/Cookie.php
67
-
68
63
-
69
64
message : " #^Class Http\\\\ Message\\\\ CookieJar implements generic interface IteratorAggregate but does not specify its types\\ : TKey, TValue$#"
70
65
count : 1
Original file line number Diff line number Diff line change @@ -511,7 +511,9 @@ private function normalizeDomain($domain)
511
511
*/
512
512
private function normalizePath ($ path )
513
513
{
514
- $ path = rtrim ($ path , '/ ' );
514
+ if (null !== $ path ) {
515
+ $ path = rtrim ($ path , '/ ' );
516
+ }
515
517
516
518
if (empty ($ path ) or '/ ' !== substr ($ path , 0 , 1 )) {
517
519
$ path = '/ ' ;
You can’t perform that action at this time.
0 commit comments