File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function getData(): array
40
40
* @param-out array $currentNode 当前构建节点的引用
41
41
* @return static
42
42
*/
43
- public function build (array $ parameterTree , array &$ currentNode = null ): static
43
+ public function build (array $ parameterTree , array | null &$ currentNode = null ): static
44
44
{
45
45
if ($ currentNode === null ) {
46
46
$ currentNode = &$ this ->data ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Astral \Serialize \OpenApi ;
4
- use Astral \Serialize \OpenApi \Handler \Config ;
5
4
6
- require_once Config:: rootPath ( ) . '/vendor/autoload.php ' ;
5
+ require_once dirname ( __DIR__ , 6 ) . '/vendor/autoload.php ' ;
7
6
8
7
try {
9
8
echo (new OpenApi ())->handleByFolders ()->toString ();
10
9
} catch (JsonException |ReflectionException $ e ) {
11
10
throw new RuntimeException ($ e ->getMessage (), $ e ->getCode (), $ e );
12
- }
11
+ }
You can’t perform that action at this time.
0 commit comments