Преглед на файлове

:shower: redundant "static" return type in final class

smiley преди 1 месец
родител
ревизия
92346420a5
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/Decoder/BitMatrix.php

+ 4 - 4
src/Decoder/BitMatrix.php

@@ -81,7 +81,7 @@ final class BitMatrix extends QRMatrix{
 	/**
 	/**
 	 * Resets the current version info in order to attempt another reading
 	 * Resets the current version info in order to attempt another reading
 	 */
 	 */
-	public function resetVersionInfo():static{
+	public function resetVersionInfo():self{
 		$this->version     = null;
 		$this->version     = null;
 		$this->eccLevel    = null;
 		$this->eccLevel    = null;
 		$this->maskPattern = null;
 		$this->maskPattern = null;
@@ -92,7 +92,7 @@ final class BitMatrix extends QRMatrix{
 	/**
 	/**
 	 * Mirror the bit matrix diagonally in order to attempt a second reading.
 	 * Mirror the bit matrix diagonally in order to attempt a second reading.
 	 */
 	 */
-	public function mirrorDiagonal():static{
+	public function mirrorDiagonal():self{
 		$this->mirror = !$this->mirror;
 		$this->mirror = !$this->mirror;
 
 
 		// mirror vertically
 		// mirror vertically
@@ -180,7 +180,7 @@ final class BitMatrix extends QRMatrix{
 	 *
 	 *
 	 * @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
 	 * @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
 	 */
 	 */
-	private function readFormatInformation():static{
+	private function readFormatInformation():self{
 
 
 		if($this->eccLevel !== null && $this->maskPattern !== null){
 		if($this->eccLevel !== null && $this->maskPattern !== null){
 			return $this;
 			return $this;
@@ -294,7 +294,7 @@ final class BitMatrix extends QRMatrix{
 	 * @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
 	 * @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
 	 * @noinspection DuplicatedCode
 	 * @noinspection DuplicatedCode
 	 */
 	 */
-	private function readVersion():static{
+	private function readVersion():self{
 
 
 		if($this->version !== null){
 		if($this->version !== null){
 			return $this;
 			return $this;