mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-02 09:58:24 +01:00
c1d86da5b2
Summary: `$cache_key` is unconditionally called in `$cache->setKey($cache_key, $data)` but is only defined if the previous condition `if ($is_cacheable && $is_locally_cacheable && !$dev_mode)` was true. Thus initialize the variable to avoid a theoretical exception. (No additional null check is needed as `$cache` gets defined in the same condition.) Test Plan: Carefully read the code. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25642 |
||
---|---|---|
.. | ||
__tests__ | ||
application | ||
controller | ||
management | ||
postprocessor | ||
resources | ||
api.php | ||
CelerityAPI.php | ||
CelerityResourceGraph.php | ||
CelerityResourceMap.php | ||
CelerityResourceMapGenerator.php | ||
CelerityResourceTransformer.php | ||
CeleritySpriteGenerator.php | ||
CelerityStaticResourceResponse.php |