Skip to content

Commit

Permalink
Until Main fixes: PHPOffice#798
Browse files Browse the repository at this point in the history
  • Loading branch information
scottpthompson authored Nov 12, 2024
1 parent 04700ed commit 1c0fc40
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PhpPresentation/Style/Font.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,6 @@ public function getPanose(): string
*/
public function setPanose(string $pValue): self
{
if (mb_strlen($pValue) !== 10) {
throw new InvalidParameterException('pValue', $pValue, 'The length is not equals to 10');
}

$allowedChars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'];
foreach (mb_str_split($pValue) as $char) {
if (!in_array($char, $allowedChars)) {
Expand Down

0 comments on commit 1c0fc40

Please sign in to comment.