Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit ebe0df2

Browse files
committed
Fix #163
1 parent aa51926 commit ebe0df2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/lib/openapi/ResponseSchema.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ protected static function isObjectSchema($schema): bool
3535

3636
protected static function isArraySchemaWithRefItems($schema): bool
3737
{
38-
return $schema->type === 'array' && isset($schema->items) && $schema->items instanceof Reference;
38+
return isset($schema->items) && $schema->items instanceof Reference &&
39+
(isset($schema->type) && $schema->type === 'array');
3940
}
4041

4142
protected static function hasAttributesReference($schema):bool

tests/docker/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ RUN echo "xdebug.idekey=PHP_STORM" >> $XDEBUGINI_PATH && \
7272
echo "xdebug.start_with_request=yes" >> $XDEBUGINI_PATH && \
7373
echo "xdebug.discover_client_host=1" >> $XDEBUGINI_PATH && \
7474
echo "xdebug.client_port=9003" >> $XDEBUGINI_PATH && \
75-
echo "xdebug.client_host=host.docker.internal" >> $XDEBUGINI_PATH
75+
echo "xdebug.client_host=host.docker.internal" >> $XDEBUGINI_PATH && \
76+
echo "xdebug.log_level=0" >> $XDEBUGINI_PATH
77+
# to get rid of lot of message `Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port).` in CLI during testing, above setting (log_level=0) is applied. Remove it when xdebug is used
78+
# reference: https://community.localwp.com/t/xdebug-step-debug-could-not-connect-to-debugging-client-flooding-logs/34550/4
79+
# scope to apply better solutions (https://stackoverflow.com/questions/64878376/xdebug-step-debug-could-not-connect-to-debugging-client)
80+
7681

7782
WORKDIR /app

0 commit comments

Comments
 (0)