Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit 5fa9673

Browse files
committed
bug fiex
1 parent 1c1befd commit 5fa9673

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
!README.md
44
!.gitkeep
55
composer.lock
6-
*.swp
6+
*.swp
7+
*.patch

src/files/File.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,12 @@ public static function getStat($filename)
8181
/**
8282
* [save description]
8383
* @param mixed $data string array(仅一维数组) 或者是 stream 资源
84-
* @param string $filename [description]
85-
* @throws \InvalidArgumentException
86-
* @throws \NotFoundException
87-
* @return bool [type] [description]
84+
* @param string $filename [description], LOCK_EX
85+
* @return bool
8886
*/
89-
public static function save($data, $filename )
87+
public static function save($filename, $data )
9088
{
91-
self::exists($filename);
92-
93-
return file_put_contents($filename, $data, LOCK_EX )!==false;
89+
return file_put_contents($filename, $data)!==false;
9490
}
9591

9692
/**

0 commit comments

Comments
 (0)