Skip to content

Commit

Permalink
Fix 'Creation of dynamic property' for images element (PHP8) (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
rskrzypczak authored Sep 9, 2024
1 parent dc4218e commit c160471
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Objects/Font.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function setSize(NumericValue $size)
/**
* Get font size.
*
* @return string
* @return NumericValue
*/
public function getSize(): NumericValue
{
Expand Down Expand Up @@ -650,7 +650,7 @@ public function getFontFileName()
return $this->fontDir . $match;
}
if (\defined('ROOT_DIRECTORY')) {
$path = ROOT_DIRECTORY;
$path = \ROOT_DIRECTORY;
$path .= \DIRECTORY_SEPARATOR . 'public_html';
$path .= \DIRECTORY_SEPARATOR . 'vendor';
$path .= \DIRECTORY_SEPARATOR . 'yetiforce';
Expand Down
8 changes: 8 additions & 0 deletions lib/Objects/ImageStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,18 @@ class ImageStream extends \YetiForcePDF\Objects\Resource
* @var string image original width
*/
protected $width = '0';

/** @var string Display width */
protected $displayWidth = '';

/**
* @var string image original height
*/
protected $height = '0';

/** @var string Display height */
protected $displayHeight = '';

/**
* Width / Height ratio.
*
Expand Down

0 comments on commit c160471

Please sign in to comment.