From a4cde1acac0ca4b91c9a9377c38ec350eb82b7e1 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 4 Apr 2022 07:29:51 +1000 Subject: [PATCH] [RFF] Use Symfony Polyfil to fix issue with missing array_key_first in ealier php versions --- composer.json | 3 +- composer.lock | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 82 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ee14ec3d60..22a87b8669 100644 --- a/composer.json +++ b/composer.json @@ -92,7 +92,8 @@ "civicrm/composer-compile-lib": "~0.3 || ~1.0", "ext-json": "*", "ezyang/htmlpurifier": "^4.13", - "phpoffice/phpspreadsheet": "^1.18" + "phpoffice/phpspreadsheet": "^1.18", + "symfony/polyfill-php73": "^1.25" }, "scripts": { "post-install-cmd": [ diff --git a/composer.lock b/composer.lock index 4f17b39834..0dd853090e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "48877e974546416099daaec465ba5205", + "content-hash": "92243f845b2f32ded8852e3739da2c4a", "packages": [ { "name": "adrienrn/php-mimetyper", @@ -4104,6 +4104,85 @@ ], "time": "2020-05-12T16:47:27+00:00" }, + { + "name": "symfony/polyfill-php73", + "version": "v1.25.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/cc5db0e22b3cb4111010e48785a97f670b350ca5", + "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.25.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-06-05T21:20:04+00:00" + }, { "name": "symfony/process", "version": "v3.4.47", -- 2.25.1