mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 05:18:18 +01:00
Updated Rector to commit 13fc72ae415ef9180286557e7032eb126d0af0e4
13fc72ae41
Fix str_contains() never returns 0 (#6546)
This commit is contained in:
parent
ae027a1892
commit
0f67e5c798
@ -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
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user