File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace Endroid \QrCode \Exception ;
6+
7+ final class BlockSizeTooSmallException extends \Exception
8+ {
9+ }
Original file line number Diff line number Diff line change 44
55namespace Endroid \QrCode \Matrix ;
66
7+ use Endroid \QrCode \Exception \BlockSizeTooSmallException ;
78use Endroid \QrCode \RoundBlockSizeMode ;
89
910final readonly class Matrix implements MatrixInterface
@@ -43,7 +44,7 @@ public function __construct(
4344 }
4445
4546 if ($ blockSize < 1 ) {
46- throw new \ Exception ('Too much data: increase image dimensions or lower error correction level ' );
47+ throw new BlockSizeTooSmallException ('Too much data: increase image dimensions or lower error correction level ' );
4748 }
4849
4950 $ this ->blockSize = $ blockSize ;
You can’t perform that action at this time.
0 commit comments