fix str_starts_with attribute

This commit is contained in:
yggverse 2024-03-27 05:00:47 +02:00
parent a3f2ab0aa2
commit d07025e5ee
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ function getLastSnapTime(array $files): int
foreach ($files as $file)
{
if (is_dir($filename) || is_link($filename) || str_starts_with('.'))
if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.'))
{
continue;
}

View File

@ -105,7 +105,7 @@ if ($config->snap->storage->local->enabled)
{
foreach ((array) scandir($directory) as $filename)
{
if (is_dir($filename) || is_link($filename) || str_starts_with('.'))
if (is_dir($filename) || is_link($filename) || str_starts_with($filename, '.'))
{
continue;
}