diff --git a/psalm-baseline.xml b/psalm-baseline.xml index bc5e8945..9b99b517 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1191,6 +1191,8 @@ + + InvokableFactory::class]]> @@ -1626,6 +1628,10 @@ + + + + searchSeparator === null]]> @@ -2108,6 +2114,12 @@ + + + + + + diff --git a/src/Word/SeparatorToSeparator.php b/src/Word/SeparatorToSeparator.php index 83fbfcf3..08809d91 100644 --- a/src/Word/SeparatorToSeparator.php +++ b/src/Word/SeparatorToSeparator.php @@ -40,7 +40,9 @@ public function __construct($searchSeparator = ' ', $replacementSeparator = '-') /** * Sets a new separator to search for * - * @param string $separator Separator to search for + * @deprecated This method will be removed in 3.0.0 without replacement + * + * @param string $separator Separator to search for * @return self */ public function setSearchSeparator($separator) @@ -52,6 +54,8 @@ public function setSearchSeparator($separator) /** * Returns the actual set separator to search for * + * @deprecated This method will be removed in 3.0.0 without replacement + * * @return string */ public function getSearchSeparator() @@ -62,7 +66,9 @@ public function getSearchSeparator() /** * Sets a new separator which replaces the searched one * - * @param string $separator Separator which replaces the searched one + * @deprecated This method will be removed in 3.0.0 without replacement + * + * @param string $separator Separator which replaces the searched one * @return self */ public function setReplacementSeparator($separator) @@ -74,6 +80,8 @@ public function setReplacementSeparator($separator) /** * Returns the actual set separator which replaces the searched one * + * @deprecated This method will be removed in 3.0.0 without replacement + * * @return string */ public function getReplacementSeparator() diff --git a/src/Word/Service/SeparatorToSeparatorFactory.php b/src/Word/Service/SeparatorToSeparatorFactory.php index 416701c5..0020963f 100644 --- a/src/Word/Service/SeparatorToSeparatorFactory.php +++ b/src/Word/Service/SeparatorToSeparatorFactory.php @@ -16,7 +16,11 @@ use function iterator_to_array; use function sprintf; -/** @final */ +/** + * @deprecated This factory will be removed in 3.0.0 without replacement + * + * @final + */ class SeparatorToSeparatorFactory implements FactoryInterface { /**