From 521b9f782fd649be72c885aad72f20d50e906638 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 19 Jul 2024 12:22:31 +0200 Subject: fix width type to float --- src/MetaboxField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/MetaboxField.php') 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; -- cgit v1.2.3