Skip to content

Commit 298f4ba

Browse files
committed
Fix warnings about null array keys, fixes #253
1 parent ccd37b3 commit 298f4ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/download.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
To automate the installation, use <a href="/doc/faqs/how-to-install-composer-programmatically.md" title="See the instructions on how to install Composer programmatically" aria-label="See the instructions on how to install Composer programmatically">the guide on installing Composer programmatically</a>.
3636
</p>
3737
<pre class="installer">php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
38-
php -r "if (hash_file('sha384', 'composer-setup.php') === '98d21f7f50ba3c9ea8632443b41b1fd39e163ab51cd5a8c15e9a22b6901f0ced96f1428bf32792154a37cfec1c467174') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }"
38+
php -r "if (hash_file('sha384', 'composer-setup.php') === 'c8b085408188070d5f52bcfe4ecfbee5f727afa458b2573b8eaaf77b3419b0bf2768dc67c86944da1544f06fa544fd47') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }"
3939
php composer-setup.php
4040
php -r "unlink('composer-setup.php');"</pre>
4141

web/installer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ function out($text, $color = null, $newLine = true)
546546

547547
$format = '%s';
548548

549-
if (isset($styles[$color]) && USE_ANSI) {
549+
if (is_string($color) && isset($styles[$color]) && USE_ANSI) {
550550
$format = $styles[$color];
551551
}
552552

0 commit comments

Comments
 (0)