Skip to content

Commit

Permalink
Fix PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Jan 23, 2025
1 parent 4d60f38 commit 8d4af09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/PhpWord/Element/AbstractContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* @method FormField addFormField(string $type, mixed $fStyle = null, mixed $pStyle = null)
* @method SDT addSDT(string $type)
* @method Formula addFormula(Math $math)
* @method Ruby addRuby(TextRun $baseText, TextRun $rubyText, RubyProperties $properties)
* @method Ruby addRuby(TextRun $baseText, TextRun $rubyText, \PhpOffice\PhpWord\ComplexType\RubyProperties $properties)
* @method \PhpOffice\PhpWord\Element\OLEObject addObject(string $source, mixed $style = null) deprecated, use addOLEObject instead
*
* @since 0.10.0
Expand Down
6 changes: 3 additions & 3 deletions src/PhpWord/Reader/Word2007/AbstractPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,9 @@ protected function readRubyProperties(XMLReader $xmlReader, DOMElement $domNode)
$rubyLid = $xmlReader->getElement('w:lid', $domNode)->getAttribute('w:val'); // type of ruby
$properties = new RubyProperties();
$properties->setAlignment($rubyAlignment);
$properties->setFontFaceSize($rubyHps);
$properties->setFontPointsAboveBaseText($rubyHpsRaise);
$properties->setFontSizeForBaseText($rubyHpsBaseText);
$properties->setFontFaceSize(floatval($rubyHps));
$properties->setFontPointsAboveBaseText(floatval($rubyHpsRaise));
$properties->setFontSizeForBaseText(floatval($rubyHpsBaseText));
$properties->setLanguageId($rubyLid);

return $properties;
Expand Down

0 comments on commit 8d4af09

Please sign in to comment.