From 0f67e5c798c18e63639a478ca29f05c353c898bb Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 11 Dec 2024 11:41:30 +0000 Subject: [PATCH] Updated Rector to commit 13fc72ae415ef9180286557e7032eb126d0af0e4 https://github.com/rectorphp/rector-src/commit/13fc72ae415ef9180286557e7032eb126d0af0e4 Fix str_contains() never returns 0 (#6546) --- src/Application/VersionResolver.php | 4 ++-- src/Configuration/OnlyRuleResolver.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 734bca9c50b..cfe35cce7ad 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '2c32ba3f9d21411ecffef51c6daa40dfc249c5bf'; + public const PACKAGE_VERSION = '13fc72ae415ef9180286557e7032eb126d0af0e4'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-12-11 11:17:54'; + public const RELEASE_DATE = '2024-12-11 11:39:10'; /** * @var int */ diff --git a/src/Configuration/OnlyRuleResolver.php b/src/Configuration/OnlyRuleResolver.php index b75bf5d99a7..53fb4a823c8 100644 --- a/src/Configuration/OnlyRuleResolver.php +++ b/src/Configuration/OnlyRuleResolver.php @@ -53,7 +53,7 @@ final class OnlyRuleResolver $message = \sprintf('Short rule name "%s" is ambiguous. Specify the full rule name:' . \PHP_EOL . '- ' . \implode(\PHP_EOL . '- ', $matching), $rule); throw new RectorRuleNameAmbigiousException($message); } - if (\in_array(\strpos($rule, '\\') !== \false, [0, \false], \true)) { + if (\strpos($rule, '\\') === \false) { $message = \sprintf('Rule "%s" was not found.%sThe rule has no namespace. Make sure to escape the backslashes, and add quotes around the rule name: --only="My\\Rector\\Rule"', $rule, \PHP_EOL); } else { $message = \sprintf('Rule "%s" was not found.%sMake sure it is registered in your config or in one of the sets', $rule, \PHP_EOL);