mirror of
https://github.com/YGGverse/Yo.git
synced 2025-02-04 19:04:24 +00:00
fix str_starts_with attribute
This commit is contained in:
parent
a3f2ab0aa2
commit
d07025e5ee
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user