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

API Rename method #646

Draft
wants to merge 1 commit into
base: 3
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
4 changes: 2 additions & 2 deletions src/Storage/DBFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ protected function isValidFilename(string $filename): bool
protected function assertFilenameValid(string $filename): void
{
$result = new ValidationResult();
$this->validate($result, $filename);
$this->validateFilename($result, $filename);
if (!$result->isValid()) {
throw new ValidationException($result);
}
Expand All @@ -466,7 +466,7 @@ protected function assertFilenameValid(string $filename): void
*
* @param null|string $filename Optional filename to validate. If omitted, the current value is validated.
*/
public function validate(ValidationResult $result, ?string $filename = null): bool
public function validateFilename(ValidationResult $result, ?string $filename = null): bool
{
if (empty($filename)) {
$filename = $this->getFilename();
Expand Down
Loading