Skip to content

Commit

Permalink
Remove strict bool type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Robertson committed Mar 12, 2020
1 parent 2d77756 commit 798889d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Draftable.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function setPublishedAt($date)
* @param bool $published
* @return $this
*/
public function setPublished(bool $published)
public function setPublished($published)
{
if (! $published) {
return $this->setPublishedAt(null);
Expand Down Expand Up @@ -128,7 +128,7 @@ public function publishAt($date)
* @param bool $publish
* @return $this
*/
public function publish(bool $publish = true)
public function publish($publish = true)
{
$this->setPublished($publish)->save();

Expand Down

0 comments on commit 798889d

Please sign in to comment.