aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/symfony/polyfill-php81/Php81.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/polyfill-php81/Php81.php')
-rw-r--r--vendor/symfony/polyfill-php81/Php81.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/symfony/polyfill-php81/Php81.php b/vendor/symfony/polyfill-php81/Php81.php
index 709c20bb5..f0507b765 100644
--- a/vendor/symfony/polyfill-php81/Php81.php
+++ b/vendor/symfony/polyfill-php81/Php81.php
@@ -20,7 +20,7 @@ final class Php81
{
public static function array_is_list(array $array): bool
{
- if ([] === $array) {
+ if ([] === $array || $array === array_values($array)) {
return true;
}