Skip to content

Commit

Permalink
Make Validator::assert and Validator::assertNullable public
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jan 20, 2021
1 parent b49e6c4 commit b3eac5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "5.2-dev"
"dev-master": "5.3-dev"
}
}
}
4 changes: 2 additions & 2 deletions src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static function (string $value) use ($regex) {
*
* @return \Dotenv\Validator
*/
private function assert(callable $callback, string $message)
public function assert(callable $callback, string $message)
{
$failing = [];

Expand Down Expand Up @@ -193,7 +193,7 @@ private function assert(callable $callback, string $message)
*
* @return \Dotenv\Validator
*/
private function assertNullable(callable $callback, string $message)
public function assertNullable(callable $callback, string $message)
{
return $this->assert(
static function (?string $value) use ($callback) {
Expand Down

0 comments on commit b3eac5c

Please sign in to comment.