File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public function __toString(): string
184184
185185            if  (0  !== $ this expires ) {
186186                $ cookieParts\sprintf ('Max-Age=%d ' , $ this getMaxAge ());
187-                 $ cookieParts\sprintf ('Expires=%s ' , gmdate (DATE_RFC7231 , $ this expires ));
187+                 $ cookieParts\sprintf ('Expires=%s ' , gmdate (self :: EXPIRES_FORMAT , $ this expires ));
188188            }
189189        }
190190
Original file line number Diff line number Diff line change 1818 */ 
1919interface  CookieInterface extends  \Stringable
2020{
21+     /** 
22+      * RFC 7231 compliant date format for cookie expiration. 
23+      */ 
24+     public  const  EXPIRES_FORMAT  = 'D, d M Y H:i:s T ' ;
25+ 
2126    /** 
2227     * Cookies will be sent in all contexts, i.e in responses to both 
2328     * first-party and cross-origin requests. If `SameSite=None` is set, 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments