codemasher 5 lat temu
rodzic
commit
96135bfeda
1 zmienionych plików z 1 dodań i 1 usunięć
  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
 	 */
 	public function getOrdinal():int{
-		return $this->eccLevel;
+		return self::MODES[$this->eccLevel];
 	}
 
 	/**