From c1855480d8368383c65f8fd3451bd2caef5eee7d Mon Sep 17 00:00:00 2001 From: Jan Trejbal Date: Sat, 25 Jun 2022 14:33:40 +0200 Subject: [PATCH] Update Nette --- composer.json | 26 +++++++++++++------------- src/DI/MailChimpExtension.php | 12 ++++++------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/composer.json b/composer.json index 20f1afd..74ca51a 100644 --- a/composer.json +++ b/composer.json @@ -17,26 +17,26 @@ "php": "^7.3 | ^8.0", "composer/ca-bundle": "^1.1", - "nette/di": "^3.0", + "nette/di": "^3.0.12", "guzzlehttp/guzzle": "^7.0", - "trejjam/base-extension": "^0.8", + "trejjam/base-extension": "^0.9", "tharos/schematic": "^1.2", "thecodingmachine/safe": "^1.0 || ^2.0" }, "require-dev": { - "nette/robot-loader": "^3.1", - "nette/bootstrap": "^2.4.6 || ^3.0", - "tracy/tracy": "^2.4 || ^3.0", + "nette/robot-loader": "^3.4", + "nette/bootstrap": "^3.1", + "tracy/tracy": "^2.9 || ^3.0", - "nette/tester": "^2.2", + "nette/tester": "^2.4", - "phpstan/phpstan": "^0.12 | ^1.1", - "phpstan/phpstan-deprecation-rules": "^0.12 | ^1.0", - "phpstan/phpstan-strict-rules": "^0.12 | ^1.0", - "thecodingmachine/phpstan-safe-rule": "^1", - "roave/no-floaters": "^1.4 | ^1.5", + "phpstan/phpstan": "^1.7", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-strict-rules": "^1.3", + "thecodingmachine/phpstan-safe-rule": "^1.2", + "roave/no-floaters": "^1.5", - "symplify/easy-coding-standard": "^9.2 || ^10.0 || ^11.0", + "symplify/easy-coding-standard": "^11.0", "roave/security-advisories": "dev-master" }, @@ -57,7 +57,7 @@ }, "extra": { "branch-alias": { - "dev-master": "v0.5.x-dev" + "dev-master": "v0.6.x-dev" } } } diff --git a/src/DI/MailChimpExtension.php b/src/DI/MailChimpExtension.php index 53bb519..8428325 100644 --- a/src/DI/MailChimpExtension.php +++ b/src/DI/MailChimpExtension.php @@ -87,14 +87,14 @@ public function beforeCompile() : void if ($this->config->http->clientFactory !== null) { if (is_string($this->config->http->clientFactory) && Strings::startsWith($this->config->http->clientFactory, '@')) { - $types['http.client']->setFactory($this->config->http->clientFactory); + $types['http.client']->setCreator($this->config->http->clientFactory); } else { - $this->loadDefinitionsFromConfig( - [ - 'http.client' => $this->config->http->clientFactory, - ] - ); + $this->loadDefinitionsFromConfig( + [ + 'http.client' => $this->config->http->clientFactory, + ] + ); } }