:octocat: Version::$versionNumber: remove property getter in favor of asymmetric visibility

This commit is contained in:
smiley
2026-03-18 02:14:28 +01:00
parent 6b59d01c9e
commit a8076a113b
17 changed files with 33 additions and 40 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ final class QRMatrixTest extends TestCase{
*/
#[Test]
public function getVersion():void{
$this::assertSame($this::version, $this->matrix->version->getVersionNumber());
$this::assertSame($this::version, $this->matrix->version->versionNumber);
}
/**
@@ -162,7 +162,7 @@ final class QRMatrixTest extends TestCase{
public function setAlignmentPattern(QRMatrix $matrix):void{
$version = $matrix->version;
if($version->getVersionNumber() === 1){
if($version->versionNumber === 1){
$this::markTestSkipped('N/A (Version 1 has no alignment pattern)');
}
@@ -222,7 +222,7 @@ final class QRMatrixTest extends TestCase{
#[DataProvider('matrixProvider')]
public function setVersionNumber(QRMatrix $matrix):void{
if($matrix->version->getVersionNumber() < 7){
if($matrix->version->versionNumber < 7){
$this::markTestSkipped('N/A (Version < 7)');
}