Skip to content

Commit b3eac5c

Browse files
Make Validator::assert and Validator::assertNullable public
1 parent b49e6c4 commit b3eac5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"extra": {
4949
"branch-alias": {
50-
"dev-master": "5.2-dev"
50+
"dev-master": "5.3-dev"
5151
}
5252
}
5353
}

src/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static function (string $value) use ($regex) {
161161
*
162162
* @return \Dotenv\Validator
163163
*/
164-
private function assert(callable $callback, string $message)
164+
public function assert(callable $callback, string $message)
165165
{
166166
$failing = [];
167167

@@ -193,7 +193,7 @@ private function assert(callable $callback, string $message)
193193
*
194194
* @return \Dotenv\Validator
195195
*/
196-
private function assertNullable(callable $callback, string $message)
196+
public function assertNullable(callable $callback, string $message)
197197
{
198198
return $this->assert(
199199
static function (?string $value) use ($callback) {

0 commit comments

Comments
 (0)