From ca006e54e30bc5ac96f35af1ed7fd73a8c422cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sat, 11 Apr 2020 10:23:51 +0200 Subject: Add missing visibility modifiers in stubs --- ext/snmp/snmp.stub.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ext/snmp') diff --git a/ext/snmp/snmp.stub.php b/ext/snmp/snmp.stub.php index 11e8516a94..bee2b39318 100644 --- a/ext/snmp/snmp.stub.php +++ b/ext/snmp/snmp.stub.php @@ -82,31 +82,31 @@ function snmp_read_mib(string $filename): bool {} class SNMP { - function __construct(int $version, string $host, string $community, int $timeout = UNKNOWN, int $retries = UNKNOWN) {} + public function __construct(int $version, string $host, string $community, int $timeout = UNKNOWN, int $retries = UNKNOWN) {} /** @return bool */ - function close() {} + public function close() {} /** @return bool */ - function setSecurity(string $sec_level, string $auth_protocol = '', string $auth_passphrase = '', string $priv_protocol = '', string $priv_passphrase = '', string $contextName = '', string $contextEngineID = '') {} + public function setSecurity(string $sec_level, string $auth_protocol = '', string $auth_passphrase = '', string $priv_protocol = '', string $priv_passphrase = '', string $contextName = '', string $contextEngineID = '') {} /** * @param array|string $object_id * @return array|bool */ - function get($object_id, bool $use_orignames = false) {} + public function get($object_id, bool $use_orignames = false) {} /** * @param array|string $object_id * @return array|bool */ - function getnext($object_id) {} + public function getnext($object_id) {} /** * @param array|string $object_id * @return array|bool */ - function walk($object_id, bool $suffix_keys = false, int $max_repetitions = UNKNOWN, int $non_repeaters = UNKNOWN) {} + public function walk($object_id, bool $suffix_keys = false, int $max_repetitions = UNKNOWN, int $non_repeaters = UNKNOWN) {} /** * @param array|string $object_id @@ -114,11 +114,11 @@ class SNMP * @param array|string $value * @return array|bool */ - function set($object_id, $type, $value) {} + public function set($object_id, $type, $value) {} /** @return int */ - function getErrno() {} + public function getErrno() {} /** @return string */ - function getError() {} + public function getError() {} } -- cgit v1.2.1