From e5babcd36ef20c3a6e888dd4e42d83f32eba12f3 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Fri, 10 Jul 2020 14:08:07 +0000 Subject: [PATCH] [PHP][EXTENSION][POLYFILL] Add php-ds polyfill, which is used if the native extension is not available --- composer.json | 1 + composer.lock | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- symfony.lock | 3 +++ 3 files changed, 52 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 10556d4f21..fcf88570f9 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ "alchemy/zippy": "v0.5.x-dev", "erusev/parsedown": "^1.7", "lstrojny/functional-php": "^1.11", + "php-ds/php-ds": "^1.2", "sensio/framework-extra-bundle": "^5.1", "symfony/asset": "5.1.*", "symfony/cache": "5.1.*", diff --git a/composer.lock b/composer.lock index 6af9eaa8d5..580d258bc1 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": "a48354f1207e959af1479adc37e1a612", + "content-hash": "7689bb117b32a69557c0ff422750bbb1", "packages": [ { "name": "alchemy/resource-component", @@ -2225,6 +2225,53 @@ ], "time": "2020-04-13T14:42:16+00:00" }, + { + "name": "php-ds/php-ds", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/php-ds/polyfill.git", + "reference": "27bed3897f9c801604f5bdcb65b71eb61ec80099" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-ds/polyfill/zipball/27bed3897f9c801604f5bdcb65b71eb61ec80099", + "reference": "27bed3897f9c801604f5bdcb65b71eb61ec80099", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "php-ds/tests": "^1.2" + }, + "suggest": { + "ext-ds": "to improve performance and reduce memory usage" + }, + "type": "library", + "autoload": { + "psr-4": { + "Ds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Rudi Theunissen", + "email": "rudolf.theunissen@gmail.com" + } + ], + "keywords": [ + "data structures", + "ds", + "php", + "polyfill" + ], + "time": "2017-08-03T02:03:34+00:00" + }, { "name": "phpdocumentor/reflection-common", "version": "2.2.0", diff --git a/symfony.lock b/symfony.lock index 818b4b3328..315d24f4df 100644 --- a/symfony.lock +++ b/symfony.lock @@ -141,6 +141,9 @@ "php-cs-fixer/diff": { "version": "v1.3.0" }, + "php-ds/php-ds": { + "version": "v1.2.0" + }, "phpdocumentor/reflection-common": { "version": "2.1.0" },