Skip to content

Commit 76eded0

Browse files
committed
Merge tag '2.2.2' into 2.x
create tag 2.2.2
2 parents 46eeafb + 55f5ace commit 76eded0

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 2.2.2 - 2021-02-05
4+
- Add deprecation messages for next major releases 3, 4 and 5
5+
36
## 2.2.1 - 2021-01-28
47
- Fix Travis settings
58

src/AbstractSoapClientBase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ protected function getLastHeaders($method, $asArray)
291291
*/
292292
public static function getFormatedXml($string, $asDomDocument = false)
293293
{
294+
@trigger_error(sprintf('%s() will be renamed to getFormattedXml in WsdlToPhp/PackageBase 3.0.', __METHOD__), E_USER_DEPRECATED);
295+
294296
return Utils::getFormatedXml($string, $asDomDocument);
295297
}
296298
/**

src/AbstractStructArrayBase.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ public function offsetUnset($offset)
194194
*/
195195
public function getInternArray()
196196
{
197+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
198+
197199
return $this->internArray;
198200
}
199201
/**
@@ -203,6 +205,8 @@ public function getInternArray()
203205
*/
204206
public function setInternArray($internArray)
205207
{
208+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
209+
206210
$this->internArray = $internArray;
207211
return $this;
208212
}
@@ -212,6 +216,8 @@ public function setInternArray($internArray)
212216
*/
213217
public function getInternArrayOffset()
214218
{
219+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
220+
215221
return $this->internArrayOffset;
216222
}
217223
/**
@@ -228,6 +234,8 @@ public function getInternArrayOffset()
228234
*/
229235
public function initInternArray($array = [], $internCall = false)
230236
{
237+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
238+
231239
if (is_array($array) && count($array) > 0) {
232240
$this
233241
->setInternArray($array)
@@ -245,6 +253,8 @@ public function initInternArray($array = [], $internCall = false)
245253
*/
246254
public function setInternArrayOffset($internArrayOffset)
247255
{
256+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
257+
248258
$this->internArrayOffset = $internArrayOffset;
249259
return $this;
250260
}
@@ -254,6 +264,8 @@ public function setInternArrayOffset($internArrayOffset)
254264
*/
255265
public function getInternArrayIsArray()
256266
{
267+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
268+
257269
return $this->internArrayIsArray;
258270
}
259271
/**
@@ -263,6 +275,8 @@ public function getInternArrayIsArray()
263275
*/
264276
public function setInternArrayIsArray($internArrayIsArray = false)
265277
{
278+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
279+
266280
$this->internArrayIsArray = $internArrayIsArray;
267281
return $this;
268282
}

src/AbstractStructBase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public static function __set_state(array $array)
3737
*/
3838
public function _set($name, $value)
3939
{
40+
@trigger_error(sprintf('%s() will be renamed to setPropertyValue in WsdlToPhp/PackageBase 4.0.', __METHOD__), E_USER_DEPRECATED);
41+
4042
$setMethod = 'set' . ucfirst($name);
4143
if (method_exists($this, $setMethod)) {
4244
$this->$setMethod($value);
@@ -53,6 +55,8 @@ public function _set($name, $value)
5355
*/
5456
public function _get($name)
5557
{
58+
@trigger_error(sprintf('%s() will be renamed to getPropertyValue in WsdlToPhp/PackageBase 4.0.', __METHOD__), E_USER_DEPRECATED);
59+
5660
$getMethod = 'get' . ucfirst($name);
5761
if (method_exists($this, $getMethod)) {
5862
return $this->$getMethod();

src/Utils.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class Utils
1313
*/
1414
public static function getFormatedXml($string, $asDomDocument = false)
1515
{
16+
@trigger_error(sprintf('%s() will be renamed to getFormattedXml in WsdlToPhp/PackageBase 3.0.', __METHOD__), E_USER_DEPRECATED);
17+
1618
if (!is_null($string)) {
1719
$domDocument = self::getDOMDocument($string);
1820
return $asDomDocument ? $domDocument : $domDocument->saveXML();

0 commit comments

Comments
 (0)