Skip to content

Commit

Permalink
Remove nullable typehints because they break the WP plugin repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmann committed Jan 1, 2019
1 parent 6a2163b commit ebba699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/DatabaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion includes/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ebba699

Please sign in to comment.