summaryrefslogtreecommitdiff
path: root/vendor/symfony/translation/Loader
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2020-10-06 12:17:15 +0100
committerGreg Roach <greg@subaqua.co.uk>2020-10-06 12:17:15 +0100
commit4aa632fc7eb0da3843f1e546fbaa70d41bc92828 (patch)
treedb1a3fc95d278e0d078ccb6e65819c48f1512d96 /vendor/symfony/translation/Loader
parentb11d56784459779f76ade08aa6364165a2444aee (diff)
downloadwebtrees-4aa632fc7eb0da3843f1e546fbaa70d41bc92828.tar.gz
webtrees-4aa632fc7eb0da3843f1e546fbaa70d41bc92828.tar.bz2
webtrees-4aa632fc7eb0da3843f1e546fbaa70d41bc92828.zip
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/translation/Loader')
-rw-r--r--vendor/symfony/translation/Loader/JsonFileLoader.php10
-rw-r--r--vendor/symfony/translation/Loader/PhpFileLoader.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/vendor/symfony/translation/Loader/JsonFileLoader.php b/vendor/symfony/translation/Loader/JsonFileLoader.php
index 9f15dbc628..8a8996b0d2 100644
--- a/vendor/symfony/translation/Loader/JsonFileLoader.php
+++ b/vendor/symfony/translation/Loader/JsonFileLoader.php
@@ -43,15 +43,15 @@ class JsonFileLoader extends FileLoader
private function getJSONErrorMessage(int $errorCode): string
{
switch ($errorCode) {
- case JSON_ERROR_DEPTH:
+ case \JSON_ERROR_DEPTH:
return 'Maximum stack depth exceeded';
- case JSON_ERROR_STATE_MISMATCH:
+ case \JSON_ERROR_STATE_MISMATCH:
return 'Underflow or the modes mismatch';
- case JSON_ERROR_CTRL_CHAR:
+ case \JSON_ERROR_CTRL_CHAR:
return 'Unexpected control character found';
- case JSON_ERROR_SYNTAX:
+ case \JSON_ERROR_SYNTAX:
return 'Syntax error, malformed JSON';
- case JSON_ERROR_UTF8:
+ case \JSON_ERROR_UTF8:
return 'Malformed UTF-8 characters, possibly incorrectly encoded';
default:
return 'Unknown error';
diff --git a/vendor/symfony/translation/Loader/PhpFileLoader.php b/vendor/symfony/translation/Loader/PhpFileLoader.php
index 0991c3d3a2..c361d5293c 100644
--- a/vendor/symfony/translation/Loader/PhpFileLoader.php
+++ b/vendor/symfony/translation/Loader/PhpFileLoader.php
@@ -25,7 +25,7 @@ class PhpFileLoader extends FileLoader
*/
protected function loadResource($resource)
{
- if ([] === self::$cache && \function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), FILTER_VALIDATE_BOOLEAN) && (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) || filter_var(ini_get('opcache.enable_cli'), FILTER_VALIDATE_BOOLEAN))) {
+ if ([] === self::$cache && \function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN) && (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) || filter_var(ini_get('opcache.enable_cli'), \FILTER_VALIDATE_BOOLEAN))) {
self::$cache = null;
}