dapphp / securimage

PHP CAPTCHA Script
https://github.com/dapphp/securimage
BSD 2-Clause "Simplified" License
568 stars 190 forks source link

Curly brace syntax #97

Closed cwuensche closed 4 years ago

cwuensche commented 4 years ago

Issue: Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4.

Fix: $this->_samples[$offset + $] = $sampleBinary[$i];

https://github.com/dapphp/securimage/blob/1ecb884797c66e01a875c058def46c85aecea45b/WavFile.php#L1569