From a6027f1efb4988c737eb79d412fc135167855c64 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 3 Jul 2024 01:55:33 +0100 Subject: [PATCH] Update wikimedia/less.php from 3.0 to 5.x (#38) --- composer.json | 10 +++++----- tests/Assetic/Test/Filter/LessphpFilterTest.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 6847dec..144b206 100644 --- a/composer.json +++ b/composer.json @@ -23,22 +23,22 @@ } ], "require": { - "php": ">=7.3 || ^8.0", + "php": "^7.3 || ^8.0", "ext-curl": "*", "ext-json": "*", "ext-simplexml": "*", - "symfony/process": "~3.4 || ~4.0 || ~5.0 || ~6.0 || ~7.0", + "symfony/process": "^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0", "symfony/deprecation-contracts": "^2.2.0" }, "require-dev": { - "wikimedia/less.php": "~3.0.0", - "wikimedia/minify": "~2.2", + "wikimedia/less.php": "^3.0 || ^5.0", + "wikimedia/minify": "^2.2", "scssphp/scssphp": "^1.0", "meenie/javascript-packer": "^1.1", "phpunit/phpunit": "^9.5.8", "psr/log": "^1.0", "ptachoire/cssembed": "^1.0", - "symfony/phpunit-bridge": "~3.4 || ~4.0 || ~5.0 || ~6.0", + "symfony/phpunit-bridge": "^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0", "twig/twig": "^2.11", "phpspec/prophecy-phpunit": "^2.0" }, diff --git a/tests/Assetic/Test/Filter/LessphpFilterTest.php b/tests/Assetic/Test/Filter/LessphpFilterTest.php index 14f9774..7489d0a 100644 --- a/tests/Assetic/Test/Filter/LessphpFilterTest.php +++ b/tests/Assetic/Test/Filter/LessphpFilterTest.php @@ -79,7 +79,7 @@ public function testPresets() $asset = new StringAsset('.foo { color: @bar }'); $asset->load(); - $this->filter->setPresets(array('bar' => 'green')); + $this->filter->setPresets(array('bar' => '#008000')); $this->filter->filterLoad($asset); $this->assertStringContainsString('#008000', $asset->getContent(), '->setPresets() to pass variables into lessphp filter');