Skip to content

Commit cdb61d5

Browse files
committed
fix: corrected ignored files for hash check
1 parent 134d360 commit cdb61d5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

phpmyfaq/src/phpMyFAQ/System.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -363,20 +363,21 @@ public function createHashes(): string
363363
'created' => $dateTime->format('Y-m-d H:i:sP'),
364364
];
365365
$ignoredFiles = [
366-
'/config/constants.php' => false,
367-
'/config/constants_elasticsearch.php' => false,
368-
'/config/database.php' => false,
369-
'/config/elasticsearch.php' => false,
370-
'/config/ldap.php' => false,
366+
'/content/core/config/azure.php' => false,
367+
'/content/core/config/constants.php' => false,
368+
'/content/core/config/constants_elasticsearch.php' => false,
369+
'/content/core/config/database.php' => false,
370+
'/content/core/config/elasticsearch.php' => false,
371+
'/content/core/config/ldap.php' => false,
371372
];
372373
$current = '';
373374

374375
try {
375376
foreach ($files as $file) {
376377
if (
377-
'php' === pathinfo((string) $file->getFilename(), PATHINFO_EXTENSION) && !preg_match(
378-
'#/tests/#',
379-
(string) $file->getPath()
378+
'php' === pathinfo((string) $file->getFilename(), PATHINFO_EXTENSION) && !str_contains(
379+
(string)$file->getPath(),
380+
'/tests/'
380381
)
381382
) {
382383
$current = str_replace(PMF_ROOT_DIR, '', (string) $file->getPathname());

0 commit comments

Comments
 (0)