Explorar o código

:octocat: QRInterventionImage: fix deprecation error

smiley hai 1 ano
pai
achega
4c204491f5
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/Output/QRInterventionImage.php

+ 5 - 1
src/Output/QRInterventionImage.php

@@ -93,7 +93,11 @@ class QRInterventionImage extends QROutputAbstract{
 		$this->image->fill($this->getDefaultModuleValue(false));
 
 		if($this->options->imageTransparent && $this::moduleValueIsValid($this->options->transparencyColor)){
-			$this->image->setBlendingColor($this->prepareModuleValue($this->options->transparencyColor));
+			$this->manager
+				->driver()
+				->config()
+				->setOptions(blendingColor: $this->prepareModuleValue($this->options->transparencyColor))
+			;
 		}
 
 		if($this::moduleValueIsValid($this->options->bgColor)){