Skip to content

Commit

Permalink
修正php7兼容性问题
Browse files Browse the repository at this point in the history
php8开始才支持联合类型,2.0版本需要兼容php7.1+
  • Loading branch information
big-dream authored Jun 24, 2024
1 parent c6398da commit f74f60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function setSuffix(string $suffix)
* @param string|bool $key 缓存标识
* @return $this
*/
public function setCacheKey(string | bool $key)
public function setCacheKey($key)
{
$this->cacheKey = $key;
return $this;
Expand Down

0 comments on commit f74f60e

Please sign in to comment.