Skip to content

Commit

Permalink
Bump the phpstan group with 3 updates (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] committed Jan 6, 2024
1 parent a496e4f commit c8cf25d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"require-dev": {
"nette/tester": "v2.5.1",
"mockery/mockery": "1.6.7",
"phpstan/phpstan": "1.10.47",
"phpstan/phpstan": "1.10.50",
"phpstan/phpstan-strict-rules": "1.5.2",
"phpstan/phpstan-nette": "1.2.9",
"nepada/phpstan-nette-tester": "1.1.0",
"spaze/phpstan-disallowed-calls": "2.16.1",
"shipmonk/phpstan-rules": "2.10.0",
"spaze/phpstan-disallowed-calls": "3.0.0",
"shipmonk/phpstan-rules": "2.11.1",
"phpstan/phpstan-mockery": "1.1.1",
"php-parallel-lint/php-parallel-lint": "1.3.2",
"nepada/coding-standard": "7.14.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/FormRenderer/Filters/SafeTranslateFilterTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class SafeTranslateFilterTest extends Tester\TestCase
private function mockTranslator(): Nette\Localization\Translator
{
$mock = \Mockery::mock(Nette\Localization\Translator::class);
$mock->shouldReceive('translate')->andReturnUsing(fn (...$args): string => 'translated: ' . Nette\Utils\Json::encode($args));
$mock->shouldReceive('translate')->andReturnUsing(fn (mixed ...$args): string => 'translated: ' . Nette\Utils\Json::encode($args));

return $mock;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/FormRenderer/TestTemplateRendererFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function create(): Latte\Engine
$latte = new Latte\Engine();
$latte->setTempDirectory(Environment::getTempDir());

$latte->addFilter('translate', fn (Latte\Runtime\FilterInfo $fi, ...$args) => reset($args));
$latte->addFilter('translate', fn (Latte\Runtime\FilterInfo $fi, mixed ...$args) => reset($args));

return $latte;
}
Expand Down

0 comments on commit c8cf25d

Please sign in to comment.