- Issue created by @rafmagsou
- last update
over 1 year ago 9 pass - last update
over 1 year ago Patch Failed to Apply - 🇷🇺Russia Chi
That needs steps to reproduce.
There is no pathinfo() function in Twig Tweak. - Assigned to arti_parmar
- Status changed to Closed: cannot reproduce
over 1 year ago 12:34pm 19 August 2023 - Status changed to Needs review
11 months ago 9:04am 12 February 2024 - 🇪🇸Spain pnavarrr
Hello,
In my case, this error is still ocurring in the twig_tweak module, so trying to apply the patch of comment #4 🐛 Deprecated function: pathinfo() on TwigExtension::image_style() Needs review is working for me.
I'm using PHP 8.1, Drupal core 9.5.11 and the version of Twig tweak is 8.2.10 so, the error for me looks like this one:Deprecated function: pathinfo(): Passing null to parameter #1 ($path) of type string is deprecated in Drupal\image\Entity\ImageStyle->supportsUri() (line 385 of core/modules/image/src/Entity/ImageStyle.php).
Drupal\image\Entity\ImageStyle->supportsUri(NULL) (Line: 1075)
Drupal\twig_tweak\TwigExtension->imageStyle(NULL, 'card_image_134x160') (Line: 62) - 🇷🇺Russia Chi
Drupal\twig_tweak\TwigExtension->imageStyle(NULL, 'card_image_134x160')
It's expected behavior because you did not pass the image path.
- Status changed to Closed: works as designed
10 months ago 6:08am 23 February 2024