@@ -27,12 +27,12 @@ class ResponseCacheStrategy implements ResponseCacheStrategyInterface
2727    /** 
2828     * Cache-Control headers that are sent to the final response if they appear in ANY of the responses. 
2929     */ 
30-     private  static   $ overrideDirectives 'private ' , 'no-cache ' , 'no-store ' , 'no-transform ' , 'must-revalidate ' , 'proxy-revalidate ' ];
30+     private  const   OVERRIDE_DIRECTIVES  = ['private ' , 'no-cache ' , 'no-store ' , 'no-transform ' , 'must-revalidate ' , 'proxy-revalidate ' ];
3131
3232    /** 
3333     * Cache-Control headers that are sent to the final response if they appear in ALL of the responses. 
3434     */ 
35-     private  static   $ inheritDirectives 'public ' , 'immutable ' ];
35+     private  const   INHERIT_DIRECTIVES  = ['public ' , 'immutable ' ];
3636
3737    private  $ embeddedResponses0 ;
3838    private  $ isNotCacheableResponseEmbeddedfalse ;
@@ -60,13 +60,13 @@ public function add(Response $response)
6060    {
6161        ++$ this embeddedResponses ;
6262
63-         foreach  (self ::$ overrideDirectives as  $ directive
63+         foreach  (self ::OVERRIDE_DIRECTIVES  as  $ directive
6464            if  ($ responseheaders ->hasCacheControlDirective ($ directive
6565                $ this flagDirectives [$ directivetrue ;
6666            }
6767        }
6868
69-         foreach  (self ::$ inheritDirectives as  $ directive
69+         foreach  (self ::INHERIT_DIRECTIVES  as  $ directive
7070            if  (false  !== $ this flagDirectives [$ directive
7171                $ this flagDirectives [$ directive$ responseheaders ->hasCacheControlDirective ($ directive
7272            }
0 commit comments