From ebba6996b556be3aaabab03deb731b82d128e31e Mon Sep 17 00:00:00 2001 From: Eric Mann Date: Tue, 1 Jan 2019 07:38:25 -0800 Subject: [PATCH] Remove nullable typehints because they break the WP plugin repository --- includes/DatabaseHandler.php | 2 +- includes/Option.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/DatabaseHandler.php b/includes/DatabaseHandler.php index ba490b0..febe394 100644 --- a/includes/DatabaseHandler.php +++ b/includes/DatabaseHandler.php @@ -132,7 +132,7 @@ public function write($key, $data, $next) * * @return bool|int false if the row could not be inserted or the number of affected rows (which will always be 1). */ - protected function directWrite(string $key, string $data, ?int $expires = null) + protected function directWrite(string $key, string $data, int $expires = null) { global $wpdb; diff --git a/includes/Option.php b/includes/Option.php index 87bf72c..59daa97 100644 --- a/includes/Option.php +++ b/includes/Option.php @@ -49,7 +49,7 @@ class Option * @param mixed $data Serialized data contained by the option. * @param int|null $time Optional timestamp for option creation. */ - public function __construct($data, ?int $time = null) + public function __construct($data, int $time = null) { $this->_data = $data; $this->_time = null === $time ? time() : intval($time);