Skip to content

Instantly share code, notes, and snippets.

@AurelienLavorel
Created June 19, 2020 16:00
Show Gist options
  • Select an option

  • Save AurelienLavorel/3f39e68346d30bb8b3435bc82be5a1d1 to your computer and use it in GitHub Desktop.

Select an option

Save AurelienLavorel/3f39e68346d30bb8b3435bc82be5a1d1 to your computer and use it in GitHub Desktop.
diff --git a/vendor/magento/framework/App/View/Deployment/Version.php b/vendor/magento/framework/App/View/Deployment/Version.php
index 05c8e39f524658b559ad7d3df37d598c443c12ef..f28c42cd2751caa14716efffe5a757f9988200f7 100644
--- a/vendor/magento/framework/App/View/Deployment/Version.php
+++ b/vendor/magento/framework/App/View/Deployment/Version.php
@@ -84,10 +84,7 @@
ConfigOptionsListConstants::CONFIG_PATH_SCD_ON_DEMAND_IN_PRODUCTION
)
) {
- $this->getLogger()->critical('Can not load static content version.');
- throw new \UnexpectedValueException(
- "Unable to retrieve deployment version of static files from the file system."
- );
+ return 1234;
}
$result = $this->generateVersion();
$this->versionStorage->save($result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment