Skip to content

Commit

Permalink
兼容性调整
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Oct 16, 2024
1 parent ef90e10 commit 9e77789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pool/proxy/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function name($name)
return $this->__call(__FUNCTION__, func_get_args());
}

public function getLastInsID(BaseQuery $query, string $sequence = null)
public function getLastInsID(BaseQuery $query, ?string $sequence = null)
{
return $this->__call(__FUNCTION__, func_get_args());
}
Expand Down
4 changes: 2 additions & 2 deletions src/response/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class File extends Response
*/
protected $file;

public function __construct($file, string $contentDisposition = null, bool $autoEtag = true, bool $autoLastModified = true, bool $autoContentType = true)
public function __construct($file, ?string $contentDisposition = null, bool $autoEtag = true, bool $autoLastModified = true, bool $autoContentType = true)
{
$this->setFile($file, $contentDisposition, $autoEtag, $autoLastModified, $autoContentType);
}
Expand All @@ -32,7 +32,7 @@ public function getFile()
return $this->file;
}

public function setFile($file, string $contentDisposition = null, bool $autoEtag = true, bool $autoLastModified = true, bool $autoContentType = true)
public function setFile($file, ?string $contentDisposition = null, bool $autoEtag = true, bool $autoLastModified = true, bool $autoContentType = true)
{
if (!$file instanceof SplFileInfo) {
$file = new SplFileInfo((string) $file);
Expand Down

0 comments on commit 9e77789

Please sign in to comment.