Skip to content

Commit 5e5dc23

Browse files
committed
Add deprecation messages for next major releases 4 and 5
1 parent 9ea1e6b commit 5e5dc23

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-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+
## 3.0.2 - 2021-02-05
4+
- Add deprecation messages for next major releases 4 and 5
5+
36
## 3.0.1 - 2021-01-28
47
- Update Travis CI badge and settings
58

src/AbstractStructBase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public static function __set_state(array $array): StructInterface
4444
*/
4545
public function _set(string $name, $value): self
4646
{
47+
@trigger_error(sprintf('%s() will be renamed to setPropertyValue in WsdlToPhp/PackageBase 4.0.', __METHOD__), E_USER_DEPRECATED);
48+
4749
$setMethod = 'set' . ucfirst($name);
4850
if (method_exists($this, $setMethod)) {
4951
$this->$setMethod($value);
@@ -62,6 +64,8 @@ public function _set(string $name, $value): self
6264
*/
6365
public function _get(string $name)
6466
{
67+
@trigger_error(sprintf('%s() will be renamed to getPropertyValue in WsdlToPhp/PackageBase 4.0.', __METHOD__), E_USER_DEPRECATED);
68+
6569
$getMethod = 'get' . ucfirst($name);
6670
if (method_exists($this, $getMethod)) {
6771
return $this->$getMethod();

0 commit comments

Comments
 (0)