Run Rector on your code to see what it can do for you:

 <?php
 
 class test {
-	private static function just_a_test(string $foo, array $bar, $used_parameter): void
+	private static function just_a_test(string $foo, array $used_parameter): void
 	{
 		\external::whatever($foo, $used_parameter);
 	}
PHP snippet to change
Config  rector.php
Rector version: 529c84 - released at 2025-08-22 22:26