Skip to content

Commit de3541e

Browse files
committed
Fix examples
1 parent 18fa8e3 commit de3541e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/testTag/testTagOnClass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ class AnotherClass
2121
{
2222
public function newInstance(): Person
2323
{
24-
return new Person();
24+
return new Person(); // ERROR
2525
}
2626

2727
public function buildPerson(): Person
2828
{
29-
return Person::create();
29+
return Person::create(); // ERROR
3030
}
3131
}

examples/testTag/testTagOnClassIgnoredInTestClass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ class PersonTest
2121
{
2222
public function newInstance(): Person
2323
{
24-
return new Person(); // ERROR
24+
return new Person(); // No Error
2525
}
2626

2727
public function buildPerson(): Person
2828
{
29-
return Person::create(); // ERROR
29+
return Person::create(); // No error
3030
}
3131
}

0 commit comments

Comments
 (0)