Updated Rector to commit 13fc72ae415ef9180286557e7032eb126d0af0e4

13fc72ae41 Fix str_contains() never returns 0 (#6546)
This commit is contained in:
Tomas Votruba 2024-12-11 11:41:30 +00:00
parent ae027a1892
commit 0f67e5c798
2 changed files with 3 additions and 3 deletions

View File

@ -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
*/

View File

@ -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);