File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 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 },
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" ,
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 },
Original file line number Diff line number Diff line change 1717use Symfony \Component \Cache \Adapter \ArrayAdapter ;
1818use Symfony \Component \DomCrawler \Crawler ;
1919
20- use function BenTools \CartesianProduct \cartesian_product ;
20+ use function BenTools \CartesianProduct \combinations ;
2121
2222class 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: ' )) {
You can’t perform that action at this time.
0 commit comments