Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Aug 31, 2024
1 parent a260fb5 commit f94d11c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker_image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN docker-php-ext-enable pcntl
# assume for now we want to observe bugs of that kind.
RUN bash -c 'echo "allow_url_include = On" > /usr/local/etc/php/conf.d/allow.ini'

RUN bash -c "cd / && curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
RUN bash -c "cd / && curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x wp-cli.phar"
RUN bash -c "cd / && git clone https://github.com/vishnubob/wait-for-it"

COPY apache_config/000-default.conf /etc/apache2/sites-enabled/
Expand Down
8 changes: 7 additions & 1 deletion docker_image/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ function __garlic_file_exists($path) {


if (!function_exists("__garlic_array_merge")) {
function __garlic_array_merge($original, ...$arrays) {
function __garlic_array_merge(...$arrays) {
if (count($arrays) == 0) {
return array();
}

$original = array_shift($arrays);

foreach($arrays as $other) {
if ($other instanceof MagicArray) {
return $other;
Expand Down

0 comments on commit f94d11c

Please sign in to comment.