Skip to content

Commit 83ba742

Browse files
committed
add group and ignore tests
1 parent 928df42 commit 83ba742

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/OpenApi/Storage/OpenAPI/SchemaStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function getData(): array
4040
* @param-out array $currentNode 当前构建节点的引用
4141
* @return static
4242
*/
43-
public function build(array $parameterTree, array &$currentNode = null): static
43+
public function build(array $parameterTree, array|null &$currentNode = null): static
4444
{
4545
if ($currentNode === null) {
4646
$currentNode = &$this->data;
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22

33
use Astral\Serialize\OpenApi;
4-
use Astral\Serialize\OpenApi\Handler\Config;
54

6-
require_once Config::rootPath() . '/vendor/autoload.php';
5+
require_once dirname(__DIR__, 6) . '/vendor/autoload.php';
76

87
try {
98
echo (new OpenApi())->handleByFolders()->toString();
109
} catch (JsonException|ReflectionException $e) {
1110
throw new RuntimeException($e->getMessage(), $e->getCode(), $e);
12-
}
11+
}

0 commit comments

Comments
 (0)