rector/config/set/defluent.php
Tomas Votruba ec76745f1f Updated Rector to commit 699e314ef3
699e314ef3 Fix stub PHPUnit\Framework\TestCase (#1960)
2022-03-25 13:08:27 +00:00

14 lines
779 B
PHP

<?php
declare (strict_types=1);
namespace RectorPrefix20220325;
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);
};