Skip to content

Commit

Permalink
Fixed fabbot.io issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Dec 8, 2018
1 parent 629fcf1 commit 11a3699
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -5,10 +5,6 @@
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This code is partially based on the Rack-Cache library by Ryan Tomayko,
* which is released under the MIT license.
* (based on commit 02d2b48d75bcb63cf1c0c7149c077ad256542801)
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
Expand Down Expand Up @@ -173,7 +169,7 @@ private function willMakeFinalResponseUncacheable(Response $response)

// Last-Modified and Etag headers cannot be merged, they render the response uncacheable
// by default (except if the response also has max-age etc.).
if (in_array($response->getStatusCode(), array(200, 203, 300, 301, 410))
if (\in_array($response->getStatusCode(), array(200, 203, 300, 301, 410))
&& null === $response->getLastModified()
&& null === $response->getEtag()
) {
Expand Down

0 comments on commit 11a3699

Please sign in to comment.