downgrade plugin to php 7.0

This commit is contained in:
David Remer 2020-09-11 13:38:02 +03:00
parent 5e011b4f95
commit c5899d915c
61 changed files with 419 additions and 368 deletions

View file

@ -18,7 +18,7 @@ use Psr\Container\ContainerInterface;
return array(
'webhook.registrar' => function( ContainerInterface $container ) : WebhookRegistrar {
'webhook.registrar' => function( $container ) : WebhookRegistrar {
$factory = $container->get( 'api.factory.webhook' );
$endpoint = $container->get( 'api.endpoint.webhook' );
$rest_endpoint = $container->get( 'webhook.endpoint.controller' );
@ -28,7 +28,7 @@ return array(
$rest_endpoint
);
},
'webhook.endpoint.controller' => function( ContainerInterface $container ) : IncomingWebhookEndpoint {
'webhook.endpoint.controller' => function( $container ) : IncomingWebhookEndpoint {
$webhook_endpoint = $container->get( 'api.endpoint.webhook' );
$webhook_factory = $container->get( 'api.factory.webhook' );
$handler = $container->get( 'webhook.endpoint.handler' );
@ -43,7 +43,7 @@ return array(
... $handler
);
},
'webhook.endpoint.handler' => function( ContainerInterface $container ) : array {
'webhook.endpoint.handler' => function( $container ) : array {
$logger = $container->get( 'woocommerce.logger.woocommerce' );
$prefix = $container->get( 'api.prefix' );
$order_endpoint = $container->get( 'api.endpoint.order' );