Skip to content

Commit f88922d

Browse files
committed
up
1 parent eb31c9c commit f88922d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function controller(string $name, string $class = null, $option = null)
5454
}
5555

5656
// not enable
57-
if ($class::isEnabled()) {
57+
if (!$class::isEnabled()) {
5858
return $this;
5959
}
6060

@@ -131,7 +131,7 @@ public function command(string $name, $handler = null, $option = null)
131131

132132
// not enable
133133
/** @var Command $handler */
134-
if ($handler::isEnabled()) {
134+
if (!$handler::isEnabled()) {
135135
return $this;
136136
}
137137
} elseif (!\is_object($handler) || !method_exists($handler, '__invoke')) {

0 commit comments

Comments
 (0)