mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
e6e5895517
[Naming] Skip used in arrow function args on RenameVariableToMatchMethodCallReturnTypeRector (#2599)
14 lines
647 B
PHP
14 lines
647 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202207;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
// @see https://ocramius.github.io/blog/fluent-interfaces-are-evil/
|
|
// @see https://www.yegor256.com/2018/03/13/fluent-interfaces.html
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$deprecatedMessage = \sprintf('The DEFLUENT set is deprecated for high number of assumptions and reported bugs. Better use PHPStan rule "%s" to warn about these cases and refactor manually.', 'https://github.com/symplify/phpstan-rules/blob/main/docs/rules_overview.md#nochainmethodcallrule');
|
|
\trigger_error($deprecatedMessage);
|
|
\sleep(3);
|
|
};
|