From 7340dbf896a2a663cd732face308041dd03ab2cb Mon Sep 17 00:00:00 2001 From: Pavel Batanov Date: Fri, 27 Jan 2023 14:10:15 +0300 Subject: [PATCH 1/2] Allow plugin installation --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 139686ec..8e09fc0e 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,8 @@ "symfony/cache": "^5.1" }, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": true }, "prefer-stable": true } From 25673314ba5966e840e4d784af3a5ffcea44ccd3 Mon Sep 17 00:00:00 2001 From: Pavel Batanov Date: Fri, 27 Jan 2023 14:44:56 +0300 Subject: [PATCH 2/2] Ignore new phpstan errors --- src/Schema/TypeFormats/NumberDouble.php | 2 +- src/Schema/TypeFormats/NumberFloat.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Schema/TypeFormats/NumberDouble.php b/src/Schema/TypeFormats/NumberDouble.php index 4d3fc386..a6a45c9c 100644 --- a/src/Schema/TypeFormats/NumberDouble.php +++ b/src/Schema/TypeFormats/NumberDouble.php @@ -14,7 +14,7 @@ class NumberDouble */ public function __invoke($value): bool { - // treat integers as valid floats + // @phpstan-ignore-next-line treat integers as valid floats return is_float($value + 0) || is_int($value + 0); } } diff --git a/src/Schema/TypeFormats/NumberFloat.php b/src/Schema/TypeFormats/NumberFloat.php index c788375d..3572cc33 100644 --- a/src/Schema/TypeFormats/NumberFloat.php +++ b/src/Schema/TypeFormats/NumberFloat.php @@ -14,7 +14,7 @@ class NumberFloat */ public function __invoke($value): bool { - // treat integers as valid floats + // @phpstan-ignore-next-line treat integers as valid floats return is_float($value + 0) || is_int($value + 0); } }