mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-27 18:48:13 +00:00
:octocat: Version::$versionNumber: remove property getter in favor of asymmetric visibility
This commit is contained in:
@@ -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)');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user