v6.x deprecations #327
Pinned
codemasher
announced in
README
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The following methods (property getters) have been deprecated in favor of asymmetric visibility, which is available as of PHP 8.4 and which is the minimum requirement of the next major version (v7) of
php-qrcode.The
QRMatrixclass will see an addition of a magic getter that emulates the future behaviour as an upgrade path, the other methods are only used internally and will see no such addition for the time being.BitBuffer::getBuffer()BitBuffer::$bufferBitBuffer::getLength()BitBuffer::$lengthDetector::getFinderPatterns()Detector::$finderPatternsEccLevel::getLevel()EccLevel::$levelECICharset::getID()ECICharset::$charsetIDFinderPattern::getCount()FinderPattern::$countGenericGFPoly::getCoefficients()GenericGFPoly::$coefficientsLuminanceSourceInterface::getHeight()LuminanceSourceInterface::$heightLuminanceSourceInterface::getWidth()LuminanceSourceInterface::$widthLuminanceSourceInterface::getLuminances()LuminanceSourceInterface::$luminancesMaskPattern::getPattern()MaskPattern::$currentPatternQRData::getBitBuffer()QRData::$bitBufferQRMatrix::getEccLevel()QRMatrix::$eccLevelQRMatrix::getMaskPattern()QRMatrix::$maskPatternQRMatrix::getMatrix()QRMatrix::$matrixQRMatrix::getSize()QRMatrix::$moduleCountQRMatrix::getVersion()QRMatrix::$versionResultPoint::getEstimatedModuleSize()ResultPoint::$estimatedModuleSizeResultPoint::getX()ResultPoint::$xResultPoint::getY()ResultPoint::$yVersion::getVersionNumber()Version::$versionNumberThe following properties as well as the method
copyVars()inQROutputAbstractwill be removed in v7 without replacement,as they only existed to improve performance by circumventing the magic getters in the
QROptionsclass - these are replaced by (set) property hooks where unnecessary overhead is reduced. Some of the built-in output classes may see the re-addition of some of these properties locally, depending on the performance impact.These changes are already in
dev-main.Beta Was this translation helpful? Give feedback.
All reactions