mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-15 12:36:32 +00:00
Datatype fix
This commit is contained in:
@@ -111,7 +111,7 @@ class HashTable
|
||||
*
|
||||
* @param string $hashCode
|
||||
*
|
||||
* @return int Index
|
||||
* @return false|int Index
|
||||
*/
|
||||
public function getIndexForHashCode($hashCode)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ class Size
|
||||
|
||||
public function __construct(string $size)
|
||||
{
|
||||
$this->valid = preg_match(self::REGEXP_SIZE_VALIDATION, $size, $matches);
|
||||
$this->valid = (bool) preg_match(self::REGEXP_SIZE_VALIDATION, $size, $matches);
|
||||
if ($this->valid) {
|
||||
$this->size = $matches['size'];
|
||||
$this->unit = $matches['unit'] ?? 'pt';
|
||||
|
||||
Reference in New Issue
Block a user