Skip to content

Commit 4be8f93

Browse files
committed
Naming
1 parent b087a37 commit 4be8f93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Enforcement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __destruct()
4747
/**
4848
*
4949
*/
50-
public function deny()
50+
public function approve()
5151
{
5252
$this->condition = true;
5353
}

src/Traits/EnforcementTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final public function orThrow(string $message, ...$args)
3636
final public function verify(): bool
3737
{
3838
if ($this->enforcement !== null && !$this->enforcement->isValid()) {
39-
$this->enforcement->deny();
39+
$this->enforcement->approve();
4040

4141
return false;
4242
}

0 commit comments

Comments
 (0)