update code style after upgrade rector and phpstan

This commit is contained in:
2024-08-28 14:03:26 +02:00
parent bb848746d5
commit 8a374864fa
10 changed files with 22 additions and 41 deletions

View File

@@ -17,7 +17,7 @@ class PDFSignatureZoneParser
{
public const ZONE_SIGNATURE_START = 'signature_zone';
private Parser $parser;
private readonly Parser $parser;
public function __construct(
public float $defaultHeight = 90.0,
@@ -48,7 +48,7 @@ class PDFSignatureZoneParser
);
foreach ($page->getDataTm() as $dataTm) {
if (str_starts_with($dataTm[1], self::ZONE_SIGNATURE_START)) {
if (str_starts_with((string) $dataTm[1], self::ZONE_SIGNATURE_START)) {
$zones[] = new PDFSignatureZone($zoneIndex, (float) $dataTm[0][4], (float) $dataTm[0][5], $this->defaultHeight, $this->defaultWidth, $pdfPage);
++$zoneIndex;
}