Skip to content

Commit 798889d

Browse files
author
Jack Robertson
committed
Remove strict bool type check
1 parent 2d77756 commit 798889d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Draftable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function setPublishedAt($date)
9696
* @param bool $published
9797
* @return $this
9898
*/
99-
public function setPublished(bool $published)
99+
public function setPublished($published)
100100
{
101101
if (! $published) {
102102
return $this->setPublishedAt(null);
@@ -128,7 +128,7 @@ public function publishAt($date)
128128
* @param bool $publish
129129
* @return $this
130130
*/
131-
public function publish(bool $publish = true)
131+
public function publish($publish = true)
132132
{
133133
$this->setPublished($publish)->save();
134134

0 commit comments

Comments
 (0)