Skip to content

Commit 9234642

Browse files
committed
🚿 redundant "static" return type in final class
1 parent d0462ee commit 9234642

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Decoder/BitMatrix.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __construct(int $dimension){
8181
/**
8282
* Resets the current version info in order to attempt another reading
8383
*/
84-
public function resetVersionInfo():static{
84+
public function resetVersionInfo():self{
8585
$this->version = null;
8686
$this->eccLevel = null;
8787
$this->maskPattern = null;
@@ -92,7 +92,7 @@ public function resetVersionInfo():static{
9292
/**
9393
* Mirror the bit matrix diagonally in order to attempt a second reading.
9494
*/
95-
public function mirrorDiagonal():static{
95+
public function mirrorDiagonal():self{
9696
$this->mirror = !$this->mirror;
9797

9898
// mirror vertically
@@ -180,7 +180,7 @@ public function readCodewords():array{
180180
*
181181
* @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
182182
*/
183-
private function readFormatInformation():static{
183+
private function readFormatInformation():self{
184184

185185
if($this->eccLevel !== null && $this->maskPattern !== null){
186186
return $this;
@@ -294,7 +294,7 @@ private function doDecodeFormatInformation(int $maskedFormatInfo1, int $maskedFo
294294
* @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
295295
* @noinspection DuplicatedCode
296296
*/
297-
private function readVersion():static{
297+
private function readVersion():self{
298298

299299
if($this->version !== null){
300300
return $this;

0 commit comments

Comments
 (0)