mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 03:40:50 +00:00
8d92c466fd
* use RectorConfig in configs * update variable name * remove extra spaces * apply on configs * apply on e2e * update markdown files * remove extra spaces
18 lines
636 B
PHP
18 lines
636 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
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);
|
|
};
|