Skip to content

Commit

Permalink
Merge pull request #100 from woocommerce/PCP-72-error-on-plugin-activ…
Browse files Browse the repository at this point in the history
…ation-with-i

Update to 0.2 of `dhii\module-interface` dep
  • Loading branch information
jorgeatorres authored Jul 6, 2021
2 parents 1711628 + 2a8ee97 commit e679156
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "PayPal Commerce Platform for WooCommerce",
"license": "GPL-2.0",
"require": {
"dhii/module-interface": "0.1",
"dhii/module-interface": "^0.2",
"psr/container": "1.0.0",
"container-interop/service-provider": "^0.4.0",
"dhii/containers": "v0.1.0-alpha1",
Expand Down
2 changes: 1 addition & 1 deletion modules/ppcp-admin-notices/src/class-adminnotices.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface $container The container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {
add_action(
'admin_notices',
function() use ( $container ) {
Expand Down
2 changes: 1 addition & 1 deletion modules/ppcp-api-client/src/class-apimodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface $container The container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {
}

/**
Expand Down
2 changes: 1 addition & 1 deletion modules/ppcp-button/src/class-buttonmodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface|null $container The Container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {

add_action(
'wp',
Expand Down
3 changes: 2 additions & 1 deletion modules/ppcp-onboarding/src/class-onboardingmodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {

$asset_loader = $container->get( 'onboarding.assets' );
/**
* The OnboardingAssets.
Expand Down
2 changes: 1 addition & 1 deletion modules/ppcp-session/src/class-sessionmodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {
add_action(
'woocommerce_init',
function () use ( $container ) {
Expand Down
2 changes: 1 addition & 1 deletion modules/ppcp-subscription/src/class-subscriptionmodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {
add_action(
'woocommerce_scheduled_subscription_payment_' . PayPalGateway::ID,
function ( $amount, $order ) use ( $container ) {
Expand Down
2 changes: 1 addition & 1 deletion modules/ppcp-wc-gateway/src/class-wcgatewaymodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {
$this->register_payment_gateways( $container );
$this->register_order_functionality( $container );
$this->register_columns( $container );
Expand Down
2 changes: 1 addition & 1 deletion modules/ppcp-webhooks/src/class-webhookmodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface|null $container The Container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {
add_action(
'rest_api_init',
static function () use ( $container ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface $container The container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {
}


Expand Down
2 changes: 1 addition & 1 deletion src/class-pluginmodule.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function setup(): ServiceProviderInterface {
*
* @param ContainerInterface|null $container The Container.
*/
public function run( ContainerInterface $container = null ) {
public function run( ContainerInterface $container ) {
}

/**
Expand Down

0 comments on commit e679156

Please sign in to comment.