Skip to content

Commit 00275cc

Browse files
committed
Use php-stubs/generator
1 parent a5e0d7f commit 00275cc

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
},
1414
"require-dev": {
1515
"php": "~7.1",
16-
"giacocorsiglia/stubs-generator": "^0.5.0"
16+
"php-stubs/generator": "^0.7.0",
17+
"nikic/php-parser": "< 4.12.0"
1718
},
1819
"suggest": {
1920
"szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan",

wordpress-stubs.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,6 +2651,7 @@ function privDisableMagicQuotes()
26512651
function privSwapBackMagicQuotes()
26522652
{
26532653
}
2654+
// --------------------------------------------------------------------------------
26542655
}
26552656
/**
26562657
* Upgrader API: Plugin_Installer_Skin class
@@ -14059,6 +14060,9 @@ public function quicktime_time_to_sample_table($info)
1405914060
public function quicktime_bookmark_time_scale($info)
1406014061
{
1406114062
}
14063+
/*
14064+
// END helper functions for m4b audiobook chapters
14065+
*/
1406214066
}
1406314067
class getid3_riff extends \getid3_handler
1406414068
{
@@ -14320,7 +14324,7 @@ class getid3_dts extends \getid3_handler
1432014324
/**
1432114325
* Default DTS syncword used in native .cpt or .dts formats.
1432214326
*/
14323-
const syncword = "��\1";
14327+
const syncword = "\xfe\x80\x01";
1432414328
/**
1432514329
* @var int
1432614330
*/
@@ -14329,13 +14333,13 @@ class getid3_dts extends \getid3_handler
1432914333
* Possible syncwords indicating bitstream encoding.
1433014334
*/
1433114335
public static $syncwords = array(
14332-
0 => "��\1",
14336+
0 => "\xfe\x80\x01",
1433314337
// raw big-endian
14334-
1 => "�\1�",
14338+
1 => "\xfe\x01\x80",
1433514339
// raw little-endian
14336-
2 => "\37��\0",
14340+
2 => "\x1f\xff\xe8\x00",
1433714341
// 14-bit big-endian
14338-
3 => "�\37\0�",
14342+
3 => "\xff\x1f\x00\xe8",
1433914343
);
1434014344
// 14-bit little-endian
1434114345
/**
@@ -40077,6 +40081,7 @@ public static function test($args = array())
4007740081
*/
4007840082
class WP_HTTP_Fsockopen extends \WP_HTTP_Streams
4007940083
{
40084+
// For backward compatibility for users who are using the class directly.
4008040085
}
4008140086
/**
4008240087
* Base WordPress Image Editor

0 commit comments

Comments
 (0)