Skip to content

Commit 1dcac96

Browse files
committed
Declare type for ext/snmp internal class constants
1 parent 3174af7 commit 1dcac96

File tree

2 files changed

+25
-37
lines changed

2 files changed

+25
-37
lines changed

ext/snmp/snmp.stub.php

+12-24
Original file line numberDiff line numberDiff line change
@@ -184,78 +184,66 @@ function snmp_read_mib(string $filename): bool {}
184184
class SNMP
185185
{
186186
/**
187-
* @var int
188187
* @cvalue SNMP_VERSION_1
189188
* @link snmp.class.constants.version-1
190189
*/
191-
public const VERSION_1 = UNKNOWN;
190+
public const int VERSION_1 = UNKNOWN;
192191
/**
193-
* @var int
194192
* @cvalue SNMP_VERSION_2c
195193
* @link snmp.class.constants.version-2c
196194
*/
197-
public const VERSION_2c = UNKNOWN;
195+
public const int VERSION_2c = UNKNOWN;
198196
/**
199-
* @var int
200197
* @cvalue SNMP_VERSION_2c
201198
* @link snmp.class.constants.version-2c
202199
*/
203-
public const VERSION_2C = UNKNOWN;
200+
public const int VERSION_2C = UNKNOWN;
204201
/**
205-
* @var int
206202
* @cvalue SNMP_VERSION_3
207203
* @link snmp.class.constants.version-3
208204
*/
209-
public const VERSION_3 = UNKNOWN;
205+
public const int VERSION_3 = UNKNOWN;
210206

211207
/**
212-
* @var int
213208
* @cvalue PHP_SNMP_ERRNO_NOERROR
214209
* @link snmp.class.constants.errno-noerror
215210
*/
216-
public const ERRNO_NOERROR = UNKNOWN;
211+
public const int ERRNO_NOERROR = UNKNOWN;
217212
/**
218-
* @var int
219213
* @cvalue PHP_SNMP_ERRNO_ANY
220214
* @link snmp.class.constants.errno-any
221215
*/
222-
public const ERRNO_ANY = UNKNOWN;
216+
public const int ERRNO_ANY = UNKNOWN;
223217
/**
224-
* @var int
225218
* @cvalue PHP_SNMP_ERRNO_GENERIC
226219
* @link snmp.class.constants.errno-generic
227220
*/
228-
public const ERRNO_GENERIC = UNKNOWN;
221+
public const int ERRNO_GENERIC = UNKNOWN;
229222
/**
230-
* @var int
231223
* @cvalue PHP_SNMP_ERRNO_TIMEOUT
232224
* @link snmp.class.constants.errno-timeout
233225
*/
234-
public const ERRNO_TIMEOUT = UNKNOWN;
226+
public const int ERRNO_TIMEOUT = UNKNOWN;
235227
/**
236-
* @var int
237228
* @cvalue PHP_SNMP_ERRNO_ERROR_IN_REPLY
238229
* @link snmp.class.constants.errno-error-in-reply
239230
*/
240-
public const ERRNO_ERROR_IN_REPLY = UNKNOWN;
231+
public const int ERRNO_ERROR_IN_REPLY = UNKNOWN;
241232
/**
242-
* @var int
243233
* @cvalue PHP_SNMP_ERRNO_OID_NOT_INCREASING
244234
* @link snmp.class.constants.errno-oid-not-increasing
245235
*/
246-
public const ERRNO_OID_NOT_INCREASING = UNKNOWN;
236+
public const int ERRNO_OID_NOT_INCREASING = UNKNOWN;
247237
/**
248-
* @var int
249238
* @cvalue PHP_SNMP_ERRNO_OID_PARSING_ERROR
250239
* @link snmp.class.constants.errno-oid-parsing-error
251240
*/
252-
public const ERRNO_OID_PARSING_ERROR = UNKNOWN;
241+
public const int ERRNO_OID_PARSING_ERROR = UNKNOWN;
253242
/**
254-
* @var int
255243
* @cvalue PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES
256244
* @link snmp.class.constants.errno-multiple-set-queries
257245
*/
258-
public const ERRNO_MULTIPLE_SET_QUERIES = UNKNOWN;
246+
public const int ERRNO_MULTIPLE_SET_QUERIES = UNKNOWN;
259247

260248
/** @readonly */
261249
public array $info;

ext/snmp/snmp_arginfo.h

+13-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)