We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a3490 commit e58f390Copy full SHA for e58f390
scoper.php
@@ -73,6 +73,16 @@
73
$content
74
),
75
76
+ // fix symfony deprecation reports, @see https://github.com/rectorphp/rector/issues/7434
77
+ static function (string $filePath, string $prefix, string $content): string {
78
+ if (! \str_ends_with($filePath, 'vendor/symfony/contracts/Deprecation/function.php')) {
79
+ return $content;
80
+ }
81
+
82
+ // comment out
83
+ return str_replace('\trigger_error', '\\ \trigger_error', $content);
84
+ },
85
86
static function (string $filePath, string $prefix, string $content): string {
87
if (! \str_ends_with($filePath, 'src/Application/VersionResolver.php')) {
88
return $content;
0 commit comments