Skip to content

Commit

Permalink
Add deprecation messages for next major releases 3, 4 and 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelcom committed Feb 5, 2021
1 parent 6a6edda commit 55f5ace
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 2.2.2 - 2021-02-05
- Add deprecation messages for next major releases 3, 4 and 5

## 2.2.1 - 2021-01-28
- Fix Travis settings

Expand Down
2 changes: 2 additions & 0 deletions src/AbstractSoapClientBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ protected function getLastHeaders($method, $asArray)
*/
public static function getFormatedXml($string, $asDomDocument = false)
{
@trigger_error(sprintf('%s() will be renamed to getFormattedXml in WsdlToPhp/PackageBase 3.0.', __METHOD__), E_USER_DEPRECATED);

return Utils::getFormatedXml($string, $asDomDocument);
}
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Utils
*/
public static function getFormatedXml($string, $asDomDocument = false)
{
@trigger_error(sprintf('%s() will be renamed to getFormattedXml in WsdlToPhp/PackageBase 3.0.', __METHOD__), E_USER_DEPRECATED);

if (!is_null($string)) {
$domDocument = self::getDOMDocument($string);
return $asDomDocument ? $domDocument : $domDocument->saveXML();
Expand Down

0 comments on commit 55f5ace

Please sign in to comment.