Skip to content

Commit ebba699

Browse files
committed
Remove nullable typehints because they break the WP plugin repository
1 parent 6a2163b commit ebba699

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/DatabaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function write($key, $data, $next)
132132
*
133133
* @return bool|int false if the row could not be inserted or the number of affected rows (which will always be 1).
134134
*/
135-
protected function directWrite(string $key, string $data, ?int $expires = null)
135+
protected function directWrite(string $key, string $data, int $expires = null)
136136
{
137137
global $wpdb;
138138

includes/Option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Option
4949
* @param mixed $data Serialized data contained by the option.
5050
* @param int|null $time Optional timestamp for option creation.
5151
*/
52-
public function __construct($data, ?int $time = null)
52+
public function __construct($data, int $time = null)
5353
{
5454
$this->_data = $data;
5555
$this->_time = null === $time ? time() : intval($time);

0 commit comments

Comments
 (0)