Skip to content

Commit

Permalink
Typehints for getHeaderMargin() and setHeaderMargin() are inconsistent (
Browse files Browse the repository at this point in the history
#598)

* Typehints for get/setHeaderMargin are inconstent

* Add typehints for header/footer margin properties

---------

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
  • Loading branch information
fisharebest and nicolaasuni committed Sep 6, 2023
1 parent 128b268 commit 18d1b2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tcpdf.php
Expand Up @@ -574,12 +574,14 @@ class TCPDF {
/**
* Minimum distance between header and top page margin.
* @protected
* @var float
*/
protected $header_margin;

/**
* Minimum distance between footer and bottom page margin.
* @protected
* @var float
*/
protected $footer_margin;

Expand Down Expand Up @@ -3372,7 +3374,7 @@ public function getHeaderData() {
/**
* Set header margin.
* (minimum distance between header and top page margin)
* @param int $hm distance in user units
* @param float $hm distance in user units
* @public
*/
public function setHeaderMargin($hm=10) {
Expand All @@ -3392,7 +3394,7 @@ public function getHeaderMargin() {
/**
* Set footer margin.
* (minimum distance between footer and bottom page margin)
* @param int $fm distance in user units
* @param float $fm distance in user units
* @public
*/
public function setFooterMargin($fm=10) {
Expand Down

0 comments on commit 18d1b2b

Please sign in to comment.