From 2cbfb6d8ab1faf58d0624ca487f9ec7b12704751 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 5 May 2021 08:02:03 +0200 Subject: [PATCH 1/2] set the hasColorSupport field in the Colors constructor The field is used to make the `hasColorSupport()` method exit early if support for colors has already been determined. If the field is not set, the fast path is never used. --- setup/Colors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/Colors.php b/setup/Colors.php index 7b2bb9a..fdfd04f 100644 --- a/setup/Colors.php +++ b/setup/Colors.php @@ -37,7 +37,7 @@ public function __construct() $this->background_colors['cyan'] = '46'; $this->background_colors['light_gray'] = '47'; - $colors_supported = $this->hasColorSupport(); + $this->hasColorSupport = $this->hasColorSupport(); } // Returns colored string From b5709ab21a727d4fb3f91a16b382063e527f3d1f Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 5 May 2021 08:30:38 +0200 Subject: [PATCH 2/2] fix PHP version badge The minimum PHP version is 7.2.5. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b51297..41ffe14 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ SPID -[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.2-8892BF.svg)](https://php.net/) +[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.2.5-8892BF.svg)](https://php.net/) [![Join the #spid-php channel](https://img.shields.io/badge/Slack%20channel-%23spid--php-blue.svg?logo=slack)](https://developersitalia.slack.com/messages/CB6DCK274) [![Get invited](https://slack.developers.italia.it/badge.svg)](https://slack.developers.italia.it/) [![SPID on forum.italia.it](https://img.shields.io/badge/Forum-SPID-blue.svg)](https://forum.italia.it/c/spid)