Skip to content

Commit 5eb27d0

Browse files
committed
Merge branch 'hotfix/4.0.1'
2 parents d983f71 + 6d77b36 commit 5eb27d0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-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+
## 4.0.1 - 2021/02/05
4+
- Add deprecation messages for next major release 5
5+
36
## 4.0.0 - 2021/02/03
47
- BC:
58
- `WsdlToPhp\PackageBase\AbstractStructBase::_set` has been renamed to `WsdlToPhp\PackageBase\AbstractStructBase::setPropertyValue`

src/AbstractStructArrayBase.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ public function offsetUnset($offset): self
193193
*/
194194
public function getInternArray(): array
195195
{
196+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
197+
196198
return $this->internArray;
197199
}
198200

@@ -203,6 +205,8 @@ public function getInternArray(): array
203205
*/
204206
public function setInternArray(array $internArray): self
205207
{
208+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
209+
206210
$this->internArray = $internArray;
207211

208212
return $this;
@@ -214,6 +218,8 @@ public function setInternArray(array $internArray): self
214218
*/
215219
public function getInternArrayOffset(): int
216220
{
221+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
222+
217223
return $this->internArrayOffset;
218224
}
219225

@@ -225,6 +231,8 @@ public function getInternArrayOffset(): int
225231
*/
226232
public function initInternArray(array $array = [], bool $internCall = false): self
227233
{
234+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
235+
228236
if (is_array($array) && count($array) > 0) {
229237
$this
230238
->setInternArray($array)
@@ -244,6 +252,8 @@ public function initInternArray(array $array = [], bool $internCall = false): se
244252
*/
245253
public function setInternArrayOffset(int $internArrayOffset): self
246254
{
255+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
256+
247257
$this->internArrayOffset = $internArrayOffset;
248258

249259
return $this;
@@ -255,6 +265,8 @@ public function setInternArrayOffset(int $internArrayOffset): self
255265
*/
256266
public function getInternArrayIsArray(): bool
257267
{
268+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
269+
258270
return $this->internArrayIsArray;
259271
}
260272

@@ -265,6 +277,8 @@ public function getInternArrayIsArray(): bool
265277
*/
266278
public function setInternArrayIsArray(bool $internArrayIsArray = false): self
267279
{
280+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
281+
268282
$this->internArrayIsArray = $internArrayIsArray;
269283

270284
return $this;

0 commit comments

Comments
 (0)