Skip to content

Commit

Permalink
Merge pull request #29 from skys215/master
Browse files Browse the repository at this point in the history
支持PHP8
  • Loading branch information
overtrue authored Feb 19, 2022
2 parents 3972e9b + 9d2cbf0 commit fd1a3c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Support/Collection.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<?php

/*
Expand Down Expand Up @@ -419,11 +420,13 @@ public function __unset($key)
/**
* var_export.
*
* @return array
* @param array properties
*
* @return object
*/
public function __set_state(): array
public static function __set_state($array): object
{
return $this->all();
return new self($array);
}

/**
Expand Down

0 comments on commit fd1a3c2

Please sign in to comment.