🚿 redundant "static" return type in final class

This commit is contained in:
smiley
2025-11-17 18:51:35 +01:00
parent d0462ee466
commit 92346420a5
+4 -4
View File
@@ -81,7 +81,7 @@ final class BitMatrix extends QRMatrix{
/**
* Resets the current version info in order to attempt another reading
*/
public function resetVersionInfo():static{
public function resetVersionInfo():self{
$this->version = null;
$this->eccLevel = 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.
*/
public function mirrorDiagonal():static{
public function mirrorDiagonal():self{
$this->mirror = !$this->mirror;
// mirror vertically
@@ -180,7 +180,7 @@ final class BitMatrix extends QRMatrix{
*
* @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
*/
private function readFormatInformation():static{
private function readFormatInformation():self{
if($this->eccLevel !== null && $this->maskPattern !== null){
return $this;
@@ -294,7 +294,7 @@ final class BitMatrix extends QRMatrix{
* @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
* @noinspection DuplicatedCode
*/
private function readVersion():static{
private function readVersion():self{
if($this->version !== null){
return $this;