summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-07-19 12:22:31 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-07-19 12:22:31 +0200
commit521b9f782fd649be72c885aad72f20d50e906638 (patch)
tree18588aeec32d21f4bd72b4797a963ea85d4d4bbd /src
parent071cc98047e1640e3a6b78bc62eef67ff29719b1 (diff)
fix width type to float
Diffstat (limited to 'src')
-rw-r--r--src/MetaboxField.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MetaboxField.php b/src/MetaboxField.php
index 9602ea7..53e60ed 100644
--- a/src/MetaboxField.php
+++ b/src/MetaboxField.php
@@ -102,11 +102,11 @@ class MetaboxField
}
/**
- * @param int $width
+ * @param float $width
*
* @return $this
*/
- public function width(int $width) {
+ public function width(float $width) {
$this->options['wrapper'] ??= [];
$this->options['wrapper']['width'] = $width < 1 ? $width*100 : $width;