diff --git a/src/Bowerphp/Package/PackageInterface.php b/src/Bowerphp/Package/PackageInterface.php index 00cc2c6..c6dea40 100644 --- a/src/Bowerphp/Package/PackageInterface.php +++ b/src/Bowerphp/Package/PackageInterface.php @@ -48,14 +48,14 @@ public function setRequiredVersion($version); * Returns a set of links to packages which need to be installed before * this package can be installed * - * @return array An array of package links defining required packages + * @return array|null An array of package links defining required packages */ public function getRequires(); /** * Set the required packages * - * @param array $requires A set of package links + * @param array|null $requires A set of package links */ public function setRequires(array $requires = null); diff --git a/src/Bowerphp/Util/Filesystem.php b/src/Bowerphp/Util/Filesystem.php index 3c9e409..f185bcc 100644 --- a/src/Bowerphp/Util/Filesystem.php +++ b/src/Bowerphp/Util/Filesystem.php @@ -44,6 +44,6 @@ public function read($filename) */ public function write($filename, $content, $mode = 0644) { - $this->dumpFile($filename, $content, $mode); + $this->dumpFile($filename, $content); } } diff --git a/tests/Bowerphp/Test/Config/ConfigTest.php b/tests/Bowerphp/Test/Config/ConfigTest.php index bbfaad8..6c1e707 100644 --- a/tests/Bowerphp/Test/Config/ConfigTest.php +++ b/tests/Bowerphp/Test/Config/ConfigTest.php @@ -192,11 +192,11 @@ public function testUpdateBowerJsonFile() $config = new Config($this->filesystem); - $this->assertEquals(0, $config->updateBowerJsonFile($package, '*')); + $this->assertEquals(0, $config->updateBowerJsonFile($package)); $config->setSaveToBowerJsonFile(true); - $this->assertEquals(123, $config->updateBowerJsonFile($package, '*')); + $this->assertEquals(123, $config->updateBowerJsonFile($package)); } public function testUpdateBowerJsonFile2()