Skip to content

Commit cf35ee9

Browse files
committed
wending
1 parent c7b14a8 commit cf35ee9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Bundle/Command/InstallCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ public function execute(InputInterface $input, OutputInterface $output): int
7777
$filesystem = new Filesystem();
7878

7979
if ($filesystem->exists($this->packpageContribManifestPath)) {
80-
$this->packpageContribManifestContent = json_decode(file_get_contents($this->packpageContribManifestPath), true);
80+
$packpageContribManifestcontent = file_get_contents($this->packpageContribManifestPath);
81+
$packpageContribManifestcontent = str_replace(array("\n", "\r"), '', $packpageContribManifestcontent);
82+
$this->packpageContribManifestContent = json_decode(trim($packpageContribManifestcontent), true);
8183
if(empty($this->packpageContribManifestContent) || !is_array($this->packpageContribManifestContent)){
8284
$this->io->error('安装失败:食谱格式错误');
8385

0 commit comments

Comments
 (0)