Skip to content

Commit dbffd90

Browse files
authored
Merge pull request #52 from imponeer/bump-min-versions-for-packages
psr/cache now requires ^3 + tests namespace fixed + symfony/cache ^7 + bentools/cartesian-product ^2 + symfony/dom-crawler ^7
2 parents 57dc041 + 81929a1 commit dbffd90

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

composer.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"php": "^8.3",
77
"smarty/smarty": "^5.0",
88
"intervention/image": "^3",
9-
"psr/cache": "^1.0|^2.0|^3.0",
9+
"psr/cache": "^3.0",
1010
"ext-json": "*",
1111
"ext-gd": "*"
1212
},
@@ -22,6 +22,11 @@
2222
"Imponeer\\Smarty\\Extensions\\Image\\": "src/"
2323
}
2424
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"Imponeer\\Smarty\\Extensions\\Image\\Tests\\": "tests/"
28+
}
29+
},
2530
"keywords": [
2631
"smarty",
2732
"image-processing",
@@ -30,10 +35,10 @@
3035
],
3136
"require-dev": {
3237
"phpunit/phpunit": "^12.0",
33-
"symfony/cache": "^5.0|^6.0|^7.0",
34-
"bentools/cartesian-product": "^1.3 || ^2.0",
38+
"symfony/cache": "^7.0",
39+
"bentools/cartesian-product": "^2.0",
3540
"symfony/polyfill-php80": "^1.27",
36-
"symfony/dom-crawler": "^5.0|^6.0|^7.0",
41+
"symfony/dom-crawler": "^7.0",
3742
"squizlabs/php_codesniffer": "^3.7",
3843
"phpstan/phpstan": "^2.0"
3944
},

tests/ResizeImageFunctionTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Cache\Adapter\ArrayAdapter;
1818
use Symfony\Component\DomCrawler\Crawler;
1919

20-
use function BenTools\CartesianProduct\cartesian_product;
20+
use function BenTools\CartesianProduct\combinations;
2121

2222
class ResizeImageFunctionTest extends TestCase
2323
{
@@ -47,7 +47,7 @@ public static function getInvokeData(): array
4747
);
4848
}
4949

50-
$combinator = cartesian_product([
50+
$combinator = combinations([
5151
'width' => [
5252
null,
5353
'150',
@@ -99,6 +99,8 @@ public static function getInvokeData(): array
9999

100100
$label = [];
101101
foreach ($attrs as $k => $v) {
102+
$v = (string) $v;
103+
102104
if (str_starts_with($v, 'https://') || str_starts_with($v, 'http://')) {
103105
$label[] = $k . '=URL';
104106
} elseif (str_starts_with($v, 'data:')) {

0 commit comments

Comments
 (0)