We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc29e9f + 48925c7 commit 27bff78Copy full SHA for 27bff78
1 file changed
config/nextcloud-25/nextcloud-25-deprecations.php
@@ -7,6 +7,7 @@
7
use Nextcloud\Rector\Rector\OcpUtilAddScriptRector;
8
use Nextcloud\Rector\ValueObject\LegacyGetterToOcpServerGet;
9
use Rector\Config\RectorConfig;
10
+use Rector\Renaming\Rector\Name\RenameClassRector;
11
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
12
use Rector\Renaming\ValueObject\RenameStaticMethod;
13
@@ -207,4 +208,14 @@
207
208
new LegacyGetterToOcpServerGet('getGeneratorHelper', 'OC\Preview\GeneratorHelper'),
209
],
210
);
211
+
212
+ $rectorConfig->ruleWithConfiguration(
213
+ RenameClassRector::class,
214
+ [
215
+ // Deprecated since 21.0.0
216
+ 'OCP\Files\Cache\CacheInsertEvent' => 'OCP\Files\Cache\CacheEntryInsertedEvent',
217
218
+ 'OCP\Files\Cache\CacheUpdateEvent' => 'OCP\Files\Cache\CacheEntryUpdatedEvent',
219
+ ],
220
+ );
221
};
0 commit comments