Explorar el Código

:octocat: no reason to leave QRCode::addSegment() protected

smiley hace 2 años
padre
commit
5282b46474
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/QRCode.php

+ 1 - 1
src/QRCode.php

@@ -346,7 +346,7 @@ class QRCode{
 	 * ISO/IEC 18004:2000 8.3.6 - Mixing modes
 	 * ISO/IEC 18004:2000 Annex H - Optimisation of bit stream length
 	 */
-	protected function addSegment(QRDataModeInterface $segment):void{
+	public function addSegment(QRDataModeInterface $segment):void{
 		$this->dataSegments[] = $segment;
 	}