Skip to content

Commit 168bb48

Browse files
Docs: Add missing @deprecated tags to PHP 4 constructors in pomo/entry.php and pomo/streams.php.
Props jrf. Fixes #48252. git-svn-id: https://develop.svn.wordpress.org/trunk@46629 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 095ef4a commit 168bb48

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

src/wp-includes/pomo/entry.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,13 @@ function __construct( $args = array() ) {
6565

6666
/**
6767
* PHP4 constructor.
68+
*
69+
* @deprecated 5.3.0 Use __construct() instead.
70+
*
71+
* @see Translation_Entry::__construct()
6872
*/
6973
public function Translation_Entry( $args = array() ) {
74+
_deprecated_constructor( self::class, '5.3.0', static::class );
7075
self::__construct( $args );
7176
}
7277

src/wp-includes/pomo/streams.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ function __construct() {
2424

2525
/**
2626
* PHP4 constructor.
27+
*
28+
* @deprecated 5.3.0 Use __construct() instead.
29+
*
30+
* @see POMO_Reader::__construct()
2731
*/
2832
public function POMO_Reader() {
33+
_deprecated_constructor( self::class, '5.3.0', static::class );
2934
self::__construct();
3035
}
3136

@@ -150,8 +155,13 @@ function __construct( $filename ) {
150155

151156
/**
152157
* PHP4 constructor.
158+
*
159+
* @deprecated 5.3.0 Use __construct() instead.
160+
*
161+
* @see POMO_FileReader::__construct()
153162
*/
154163
public function POMO_FileReader( $filename ) {
164+
_deprecated_constructor( self::class, '5.3.0', static::class );
155165
self::__construct( $filename );
156166
}
157167

@@ -229,8 +239,13 @@ function __construct( $str = '' ) {
229239

230240
/**
231241
* PHP4 constructor.
242+
*
243+
* @deprecated 5.3.0 Use __construct() instead.
244+
*
245+
* @see POMO_StringReader::__construct()
232246
*/
233247
public function POMO_StringReader( $str = '' ) {
248+
_deprecated_constructor( self::class, '5.3.0', static::class );
234249
self::__construct( $str );
235250
}
236251

@@ -295,8 +310,13 @@ function __construct( $filename ) {
295310

296311
/**
297312
* PHP4 constructor.
313+
*
314+
* @deprecated 5.3.0 Use __construct() instead.
315+
*
316+
* @see POMO_CachedFileReader::__construct()
298317
*/
299318
public function POMO_CachedFileReader( $filename ) {
319+
_deprecated_constructor( self::class, '5.3.0', static::class );
300320
self::__construct( $filename );
301321
}
302322
}
@@ -316,8 +336,13 @@ public function __construct( $filename ) {
316336

317337
/**
318338
* PHP4 constructor.
339+
*
340+
* @deprecated 5.3.0 Use __construct() instead.
341+
*
342+
* @see POMO_CachedIntFileReader::__construct()
319343
*/
320344
function POMO_CachedIntFileReader( $filename ) {
345+
_deprecated_constructor( self::class, '5.3.0', static::class );
321346
self::__construct( $filename );
322347
}
323348
}

0 commit comments

Comments
 (0)