Skip to content

Commit fca7fa6

Browse files
committed
Update PHPStan
1 parent 56c95d1 commit fca7fa6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

phpstan.tests.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ parameters:
88
- identifier: missingType.iterableValue
99
- '#Access to an undefined property Netgen\\TagsBundle\\API\\Repository\\Values\\Tags\\Tag::\$notDefined.#'
1010
- '#Missing call to parent::setUp\(\) method.#'
11+
- "#Call to static method PHPUnit\\\\Framework\\\\Assert::assertSame\\(\\) with 'some_value' and 'some_value' will always evaluate to true.#"

tests/Core/Event/TagsServiceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,12 +756,12 @@ public function testNewTagUpdateStruct(): void
756756
*/
757757
public function testSudo(): void
758758
{
759-
$callback = static function (): void {};
759+
$callback = static function (): string { return 'some_value'; };
760760

761761
$this->tagsService
762762
->expects(self::once())
763763
->method('sudo')
764-
->willReturn('some_value');
764+
->willReturn($callback());
765765

766766
$eventDispatchingService = $this->getEventDispatchingService();
767767
$value = $eventDispatchingService->sudo($callback);

0 commit comments

Comments
 (0)