mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-19 03:00:04 +00:00
🚿
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ final class QRData{
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a fresh matrix object with the data written for the given $maskPattern
|
||||
* returns a fresh matrix object with the data written and masked with the given $maskPattern
|
||||
*/
|
||||
public function writeMatrix(MaskPattern $maskPattern):QRMatrix{
|
||||
$data = (new ReedSolomonEncoder)->interleaveEcBytes($this->bitBuffer, $this->version, $this->eccLevel);
|
||||
|
||||
@@ -106,7 +106,7 @@ abstract class QROutputAbstract implements QROutputInterface{
|
||||
protected function saveToFile(string $data, string $file):bool{
|
||||
|
||||
if(!is_writable(dirname($file))){
|
||||
throw new QRCodeOutputException(sprintf('Could not write data to cache file: %s', $file));
|
||||
throw new QRCodeOutputException(sprintf('Cannot write data to cache file: %s', $file));
|
||||
}
|
||||
|
||||
return (bool)file_put_contents($file, $data);
|
||||
|
||||
@@ -64,7 +64,7 @@ abstract class QROutputTestAbstract extends TestCase{
|
||||
*/
|
||||
public function testSaveException():void{
|
||||
$this->expectException(QRCodeOutputException::class);
|
||||
$this->expectExceptionMessage('Could not write data to cache file: /foo/bar.test');
|
||||
$this->expectExceptionMessage('Cannot write data to cache file: /foo/bar.test');
|
||||
|
||||
$this->options->cachefile = '/foo/bar.test';
|
||||
$this->outputInterface = $this->getOutputInterface($this->options);
|
||||
|
||||
Reference in New Issue
Block a user