@@ -212,16 +212,6 @@ public function hasNamespaceImport(string $namespace): bool
212212 return isset ($ this ->namespaceImports [$ namespace ]);
213213 }
214214
215- /**
216- * @deprecated Use setNamespaceImports()
217- * @param string ...$namespaces
218- * @return self
219- */
220- public function setNamespaceUse (string ...$ namespaces ): self
221- {
222- return $ this ->setNamespaceImports (...$ namespaces );
223- }
224-
225215 /**
226216 * Replacing will not work on existing files
227217 *
@@ -274,16 +264,6 @@ public function hasTrait(string $trait): bool
274264 return isset ($ this ->traits [$ trait ]);
275265 }
276266
277- /**
278- * @deprecated Use setTraits()
279- * @param string ...$traits
280- * @return self
281- */
282- public function setUseTrait (string ...$ traits ): self
283- {
284- return $ this ->setTraits (...$ traits );
285- }
286-
287267 /**
288268 * Replacing will not work on existing files
289269 *
@@ -498,15 +478,6 @@ public function getImplements(): array
498478 return $ this ->implements ;
499479 }
500480
501- /**
502- * @deprecated Use namespaceImports()
503- * @return string[]
504- */
505- public function getNamespaceUse (): array
506- {
507- return $ this ->namespaceImports ;
508- }
509-
510481 /**
511482 * @return string[]
512483 */
@@ -515,15 +486,6 @@ public function getNamespaceImports(): array
515486 return $ this ->namespaceImports ;
516487 }
517488
518- /**
519- * @deprecated Use getTraits()
520- * @return string[]
521- */
522- public function getUseTrait (): array
523- {
524- return $ this ->traits ;
525- }
526-
527489 /**
528490 * @return string[]
529491 */
@@ -621,16 +583,6 @@ public function sortNamespaceImports(callable $sort): self
621583 return $ this ;
622584 }
623585
624- /**
625- * @deprecated Use sortNamespaceImports()
626- * @param callable $sort
627- * @return $this
628- */
629- public function sortNamespaceUse (callable $ sort ): self
630- {
631- return $ this ->sortNamespaceImports ($ sort );
632- }
633-
634586 /**
635587 * @param Parser $parser
636588 * @return NodeVisitor[]
0 commit comments