Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace bool with false at Adapter methods that return false on failure #712

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Gaufrette/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface Adapter
*
* @param string $key
*
* @return string|bool if cannot read content
* @return string|false The file content as string or `false` on failure
*/
public function read($key);

Expand All @@ -25,7 +25,7 @@ public function read($key);
* @param string $key
* @param string $content
*
* @return int|bool The number of bytes that were written into the file
* @return int|false The number of bytes that were written into the file or `false` on failure
*/
public function write($key, $content);

Expand All @@ -50,7 +50,7 @@ public function keys();
*
* @param string $key
*
* @return int|bool An UNIX like timestamp or false
* @return int|false An UNIX like timestamp or false on failure
*/
public function mtime($key);

Expand Down