Skip to content

Commit

Permalink
Fix phpstan errors (#606)
Browse files Browse the repository at this point in the history
* Fix phpstan errors

* Actually return an int

Co-authored-by: Alex Pott <alex.a.pott@googlemail.com>
  • Loading branch information
ol0lll and alexpott committed Nov 8, 2022
1 parent df4e59a commit ec658cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getParagraphDelta(string $fieldName, int $position) {
throw new \Exception('No new paragraph is found');
}

return $matches[1];
return (int) $matches[1];
}

/**
Expand Down

0 comments on commit ec658cb

Please sign in to comment.