Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit 73dbcaa

Browse files
committed
minor fixes
1 parent eacf227 commit 73dbcaa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Bowerphp/Package/PackageInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ public function setRequiredVersion($version);
4848
* Returns a set of links to packages which need to be installed before
4949
* this package can be installed
5050
*
51-
* @return array An array of package links defining required packages
51+
* @return array|null An array of package links defining required packages
5252
*/
5353
public function getRequires();
5454

5555
/**
5656
* Set the required packages
5757
*
58-
* @param array $requires A set of package links
58+
* @param array|null $requires A set of package links
5959
*/
6060
public function setRequires(array $requires = null);
6161

src/Bowerphp/Util/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ public function read($filename)
4444
*/
4545
public function write($filename, $content, $mode = 0644)
4646
{
47-
$this->dumpFile($filename, $content, $mode);
47+
$this->dumpFile($filename, $content);
4848
}
4949
}

tests/Bowerphp/Test/Config/ConfigTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ public function testUpdateBowerJsonFile()
192192

193193
$config = new Config($this->filesystem);
194194

195-
$this->assertEquals(0, $config->updateBowerJsonFile($package, '*'));
195+
$this->assertEquals(0, $config->updateBowerJsonFile($package));
196196

197197
$config->setSaveToBowerJsonFile(true);
198198

199-
$this->assertEquals(123, $config->updateBowerJsonFile($package, '*'));
199+
$this->assertEquals(123, $config->updateBowerJsonFile($package));
200200
}
201201

202202
public function testUpdateBowerJsonFile2()

0 commit comments

Comments
 (0)