codemasher 5 tahun lalu
induk
melakukan
96135bfeda
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Common/EccLevel.php

+ 1 - 1
src/Common/EccLevel.php

@@ -217,7 +217,7 @@ final class EccLevel{
 	 * returns the ordinal value of the current ECC level
 	 * returns the ordinal value of the current ECC level
 	 */
 	 */
 	public function getOrdinal():int{
 	public function getOrdinal():int{
-		return $this->eccLevel;
+		return self::MODES[$this->eccLevel];
 	}
 	}
 
 
 	/**
 	/**