Skip to content

Commit

Permalink
Fix cebe#163
Browse files Browse the repository at this point in the history
  • Loading branch information
SOHELAHMED7 committed Apr 25, 2024
1 parent aa51926 commit ebe0df2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/openapi/ResponseSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ protected static function isObjectSchema($schema): bool

protected static function isArraySchemaWithRefItems($schema): bool
{
return $schema->type === 'array' && isset($schema->items) && $schema->items instanceof Reference;
return isset($schema->items) && $schema->items instanceof Reference &&
(isset($schema->type) && $schema->type === 'array');
}

protected static function hasAttributesReference($schema):bool
Expand Down
7 changes: 6 additions & 1 deletion tests/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ RUN echo "xdebug.idekey=PHP_STORM" >> $XDEBUGINI_PATH && \
echo "xdebug.start_with_request=yes" >> $XDEBUGINI_PATH && \
echo "xdebug.discover_client_host=1" >> $XDEBUGINI_PATH && \
echo "xdebug.client_port=9003" >> $XDEBUGINI_PATH && \
echo "xdebug.client_host=host.docker.internal" >> $XDEBUGINI_PATH
echo "xdebug.client_host=host.docker.internal" >> $XDEBUGINI_PATH && \
echo "xdebug.log_level=0" >> $XDEBUGINI_PATH
# 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
# reference: https://community.localwp.com/t/xdebug-step-debug-could-not-connect-to-debugging-client-flooding-logs/34550/4
# scope to apply better solutions (https://stackoverflow.com/questions/64878376/xdebug-step-debug-could-not-connect-to-debugging-client)


WORKDIR /app

0 comments on commit ebe0df2

Please sign in to comment.