From b56a54aab0438a1fae8b492821bc2d5726d4569c Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 11 Feb 2025 12:33:54 +0000 Subject: [PATCH] Require safe ^1.2 1.0 and 1.1 use `resource` as a literal type hint, which is interpreted as a class name, which results in error reports (I'm not sure why anybody would be using safe v1.0 or v1.1, but our test suite checks with `--prefer-lowest`, and I'm not sure why that didn't catch this issue earlier) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8c75147..3957d55 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": "^8.1", "phpstan/phpstan": "^2.0", - "thecodingmachine/safe": "^1.0 || ^2.0 || ^3.0", + "thecodingmachine/safe": "^1.2 || ^2.0 || ^3.0", "nikic/php-parser": "^5" }, "require-dev": {