smiley il y a 1 an
Parent
commit
b2255fe358
3 fichiers modifiés avec 10 ajouts et 5 suppressions
  1. 1 1
      README.md
  2. 4 4
      src/Output/QROutputAbstract.php
  3. 5 0
      src/QRCode.php

+ 1 - 1
README.md

@@ -74,7 +74,7 @@ For the QRCode reader, either `ext-gd` or `ext-imagick` is required!
 
 ## Installation with [composer](https://getcomposer.org)
 
-See [the installation guide](https://php-qrcode.readthedocs.io/en/v5.0.x/Usage-Installation.html) for more info!
+See [the installation guide](https://php-qrcode.readthedocs.io/en/v5.0.x/Usage/Installation.html) for more info!
 
 
 ### Terminal

+ 4 - 4
src/Output/QROutputAbstract.php

@@ -146,18 +146,18 @@ abstract class QROutputAbstract implements QROutputInterface{
 	}
 
 	/**
-	 * Prepares the value for the given input ()
+	 * Prepares the value for the given input (return value depends on the output class)
 	 *
 	 * @param mixed $value
 	 *
-	 * @return mixed|null return value depends on the output class
+	 * @return mixed|null
 	 */
 	abstract protected function prepareModuleValue($value);
 
 	/**
-	 * Returns a default value for either dark or light modules
+	 * Returns a default value for either dark or light modules (return value depends on the output class)
 	 *
-	 * @return mixed|null return value depends on the output class
+	 * @return mixed|null
 	 */
 	abstract protected function getDefaultModuleValue(bool $isDark);
 

+ 5 - 0
src/QRCode.php

@@ -202,6 +202,11 @@ class QRCode{
 	/**
 	 * Renders a QR Code for the given $data and QROptions, saves $file optionally
 	 *
+	 * Note: it is possible to add several data segments before calling this method with a valid $data string
+	 *       which will result in a mixed-mode QR Code with the given parameter as last element.
+	 *
+	 * @see https://github.com/chillerlan/php-qrcode/issues/246
+	 *
 	 * @return mixed
 	 */
 	public function render(string $data = null, string $file = null){