Skip to content

Commit

Permalink
[Command:Debug] Fix dumping of only one element (#46)
Browse files Browse the repository at this point in the history
* [Command:Debug] Fix dumping of only one element
* Require doctrine annotations
* Run php 8.1 in CI
  • Loading branch information
zlatkoverk authored Oct 3, 2022
1 parent 977a2f3 commit 86ef757
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ private function dumpMappingValueArrayElement(
$output->writeln('');
}
foreach ($arrayValue as $key => $value) {
if (count($value) > 1) {
$this->dumpMappingValueStringElement($key, "{" . implode(", ", $value) . "}", $output, $indent + 1);
continue;
}
$this->dumpMappingValueStringElement($key, $value[0], $output, $indent + 1);
}
}
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@
},
"require": {
"php": ">=7.4",
"doctrine/annotations": "^1.13",
"doctrine/orm": "^2.8",
"symfony/config": "^4.4 || ^5.3",
"symfony/console": "^4.4 || ^5.3",
"symfony/dependency-injection": "^4.4 || ^5.3",
"symfony/expression-language": "^4.4 || ^5.3",
"symfony/http-kernel": "^4.4 || ^5.3",
"symfony/property-access": "^4.4 || ^5.3",
"symfony/routing": "^4.4 || ^5.3",
"symfony/serializer": "^4.4 || ^5.3",
"symfony/console": "^4.4 || ^5.3"
"symfony/serializer": "^4.4 || ^5.3"
},
"require-dev": {
"mheap/phpunit-github-actions-printer": "^1.5",
Expand Down
6 changes: 3 additions & 3 deletions dev/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARG PHP_VERSION=8.0
ARG PHP_VERSION=8.1.11

FROM php:${PHP_VERSION}-cli-alpine3.13
FROM php:${PHP_VERSION}-cli-alpine3.16

ARG COMPOSER_VERSION=2.1.3
ARG PHP_CS_FIXER_VERSION=3.0.0
ARG XDEBUG_VERSION=3.0.4
ARG XDEBUG_VERSION=3.1.5

ENV XDEBUG_CONFIG="client_host=host.docker.internal"

Expand Down

0 comments on commit 86ef757

Please sign in to comment.