Skip to content

Commit b24bd5e

Browse files
authored
Added missing namespace to test (#5214)
1 parent 47e49ed commit b24bd5e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/PHPStan/Rules/Methods/AbstractMethodInNonAbstractClassRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public function testNonAbstractMethodWithNoBody(): void
6565
{
6666
$this->analyse([__DIR__ . '/data/bug-4244.php'], [
6767
[
68-
'Non-abstract method HelloWorld::sayHello() must contain a body.',
69-
5,
68+
'Non-abstract method Bug4244\HelloWorld::sayHello() must contain a body.',
69+
7,
7070
],
7171
]);
7272
}

tests/PHPStan/Rules/Methods/data/bug-4244.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php declare(strict_types = 1);
22

3+
namespace Bug4244;
4+
35
class HelloWorld
46
{
57
public function sayHello(): void;

0 commit comments

Comments
 (0)