Skip to content

Commit f76e119

Browse files
committed
Exclude data and model dirs in phpunit configuration. PhpUnit sees them as tests files because of the suffix defined in the phpunit config.
1 parent afdf2f2 commit f76e119

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

phpunit.xml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<testsuites>
44
<testsuite name="Package Test Suite">
55
<directory suffix=".php">./tests/</directory>
6+
<exclude>./tests/data</exclude>
7+
<exclude>./tests/models</exclude>
68
</testsuite>
79
</testsuites>
810
<source>

src/NodeTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ public function newCollection(array $models = array())
746746
*
747747
* Use `children` key on `$attributes` to create child nodes.
748748
*/
749-
public static function create(array $attributes = [], self|null $parent = null)
749+
public static function create(array $attributes = [], ?self $parent = null)
750750
{
751751
$children = Arr::pull($attributes, 'children');
752752

0 commit comments

Comments
 (0)