fix method name

This commit is contained in:
David Remer 2020-08-31 12:39:18 +03:00
parent c908fddb6e
commit d1cab80167

View file

@ -61,7 +61,13 @@ return array(
'api.bearer' => static function ( ContainerInterface $container ): Bearer {
$state = $container->get( 'onboarding.state' );
if ( $state->currentState() < State::STATE_ONBOARDED ) {
/**
* The State.
*
* @var State $state
*/
if ( $state->current_state() < State::STATE_ONBOARDED ) {
return new ConnectBearer();
}
global $wpdb;