rector/config/set/defluent.php
Tomas Votruba 9ca383a82e Updated Rector to commit 0cc56b0a0b1b1d18b185542db21039a7d2f30d69
0cc56b0a0b [automated] Re-Generate Nodes/Rectors Documentation (#1522)
2021-12-19 00:36:48 +00:00

14 lines
779 B
PHP

<?php
declare (strict_types=1);
namespace RectorPrefix20211219;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
// @see https://ocramius.github.io/blog/fluent-interfaces-are-evil/
// @see https://www.yegor256.com/2018/03/13/fluent-interfaces.html
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : 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);
};