This repository was archived by the owner on Jul 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
tests/Bowerphp/Test/Config Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments