Skip to content

Commit c76cf4f

Browse files
committed
优化 preprocessor.php
1 parent 2600d6c commit c76cf4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sapi/src/Preprocessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ protected function downloadFile(?object $project = null, string $httpProxyConfig
463463
* @param string $httpProxyConfig
464464
* @return void
465465
*/
466-
public function downloadFileWithPie(object $project, string $httpProxyConfig): void
466+
public function downloadFileWithPie(?object $project = null, string $httpProxyConfig): void
467467
{
468468
$pieName = $project->pieName;
469469
$pieVersion = $project->pieVersion;
@@ -503,7 +503,7 @@ public function downloadFileWithPie(object $project, string $httpProxyConfig): v
503503
* @param string $httpProxyConfig
504504
* @return void
505505
*/
506-
protected function downloadFileWithScript(object $project = null, string $httpProxyConfig): void
506+
protected function downloadFileWithScript(?object $project = null, string $httpProxyConfig): void
507507
{
508508

509509
if (!empty($project->downloadScript) && !empty($project->downloadDirName)) {

0 commit comments

Comments
 (0)