Skip to content

Commit 40aaa48

Browse files
committed
update rector, move assign outside asset
1 parent 867428e commit 40aaa48

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"phpstan/phpstan": "^1.0",
7575
"phpstan/phpstan-webmozart-assert": "^1.0",
7676
"pimple/pimple": "^3.2",
77-
"rector/rector": "0.12.7",
77+
"rector/rector": "0.12.8",
7878
"symfony/dependency-injection": "^5.0"
7979
},
8080
"suggest": {

spec/Integration/IntegrationViaErrorPreviewControllerForIdempotentSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
});
3232

33-
given('tableGateway', function () {
33+
given('tableGateway', function (): TableGateway {
3434

3535
$serviceManager = $this->application->getServiceManager();
3636
$db = $serviceManager->get(AdapterInterface::class);

spec/Middleware/MezzioSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'methods' => '__construct'
3131
]));
3232

33-
given('renderer', function () {
33+
given('renderer', function (): LaminasViewRenderer {
3434

3535
$renderer = new PhpRenderer();
3636
$resolver = new AggregateResolver();
@@ -176,7 +176,7 @@
176176

177177
]);
178178

179-
given('dbWriter', function () {
179+
given('dbWriter', function (): Db {
180180
$dbAdapter = new Adapter([
181181
'username' => 'root',
182182
'password' => '',

src/HeroTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public function phpError(...$args): void
3636
{
3737
if ($this instanceof Mvc) {
3838
Assert::count($args, 1);
39-
Assert::isInstanceOf($this->mvcEvent = $args[0], MvcEvent::class);
39+
Assert::isInstanceOf($args[0], MvcEvent::class);
40+
41+
$this->mvcEvent = $args[0];
4042
}
4143

4244
if (! $this->errorHeroModuleConfig['display-settings']['display_errors']) {

0 commit comments

Comments
 (0)