Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Fix Invalid argument foreach#2

Open
SBordier44 wants to merge 2 commits intodocker-php:4.1.36from
SBordier44:4.1.36
Open

Fix Invalid argument foreach#2
SBordier44 wants to merge 2 commits intodocker-php:4.1.36from
SBordier44:4.1.36

Conversation

@SBordier44
Copy link
Copy Markdown

$values_1 = [];
foreach ($value as $value_1) {
$values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\PortBinding', 'json', $context);
if($value)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use if(is_iterable($value))?

@hanovruslan
Copy link
Copy Markdown

ping

@hanovruslan
Copy link
Copy Markdown

ping @nathandesmet

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants