We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac7c19 commit 23f6174Copy full SHA for 23f6174
src/DataCollector/QueryCollector.php
@@ -392,8 +392,10 @@ protected function findViewFromHash($hash)
392
$this->reflection['viewfinderViews'] = $property;
393
}
394
395
+ $xxh128Exists = in_array('xxh128', hash_algos());
396
+
397
foreach ($property->getValue($finder) as $name => $path) {
- if (hash('xxh128', 'v2' . $path) == $hash || sha1('v2' . $path) == $hash) {
398
+ if (($xxh128Exists && hash('xxh128', 'v2' . $path) == $hash) || sha1('v2' . $path) == $hash) {
399
return $name;
400
401
0 commit comments