Skip to content

Commit a7856c1

Browse files
Dik Takkennikic
Dik Takken
authored andcommitted
Review parameter names in ext/xmlreader
Closes GH-6255.
1 parent 3eae7aa commit a7856c1

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

ext/xmlreader/php_xmlreader.stub.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function getAttribute(string $name) {}
1414
public function getAttributeNo(int $index) {}
1515

1616
/** @return string|null */
17-
public function getAttributeNs(string $name, string $namespaceURI) {}
17+
public function getAttributeNs(string $name, string $uri) {}
1818

1919
/** @return bool */
2020
public function getParserProperty(int $property) {}
@@ -32,7 +32,7 @@ public function moveToAttribute(string $name) {}
3232
public function moveToAttributeNo(int $index) {}
3333

3434
/** @return bool */
35-
public function moveToAttributeNs(string $name, string $namespaceURI) {}
35+
public function moveToAttributeNs(string $name, string $uri) {}
3636

3737
/** @return bool */
3838
public function moveToElement() {}
@@ -47,10 +47,10 @@ public function moveToNextAttribute() {}
4747
public function read() {}
4848

4949
/** @return bool */
50-
public function next(?string $localname = null) {}
50+
public function next(?string $name = null) {}
5151

5252
/** @return bool|XMLReader */
53-
public static function open(string $URI, ?string $encoding = null, int $options = 0) {}
53+
public static function open(string $uri, ?string $encoding = null, int $flags = 0) {}
5454

5555
/** @return string */
5656
public function readInnerXml() {}
@@ -74,8 +74,8 @@ public function setRelaxNGSchema(?string $filename) {}
7474
public function setRelaxNGSchemaSource(?string $source) {}
7575

7676
/** @return bool|XMLReader */
77-
public static function XML(string $source, ?string $encoding = null, int $options = 0) {}
77+
public static function XML(string $source, ?string $encoding = null, int $flags = 0) {}
7878

7979
/** @return DOMNode|false */
80-
public function expand(?DOMNode $basenode = null) {}
80+
public function expand(?DOMNode $baseNode = null) {}
8181
}

ext/xmlreader/php_xmlreader_arginfo.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 7d549429c217e5c3b9c36013b6737f4e8eeccbb6 */
2+
* Stub hash: b5860285a7554c75780be7989bcbdeced6b557c8 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_close, 0, 0, 0)
55
ZEND_END_ARG_INFO()
@@ -14,7 +14,7 @@ ZEND_END_ARG_INFO()
1414

1515
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_getAttributeNs, 0, 0, 2)
1616
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
17-
ZEND_ARG_TYPE_INFO(0, namespaceURI, IS_STRING, 0)
17+
ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0)
1818
ZEND_END_ARG_INFO()
1919

2020
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_getParserProperty, 0, 0, 1)
@@ -42,13 +42,13 @@ ZEND_END_ARG_INFO()
4242
#define arginfo_class_XMLReader_read arginfo_class_XMLReader_close
4343

4444
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_next, 0, 0, 0)
45-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, localname, IS_STRING, 1, "null")
45+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, name, IS_STRING, 1, "null")
4646
ZEND_END_ARG_INFO()
4747

4848
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_open, 0, 0, 1)
49-
ZEND_ARG_TYPE_INFO(0, URI, IS_STRING, 0)
49+
ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0)
5050
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
51-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
51+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
5252
ZEND_END_ARG_INFO()
5353

5454
#define arginfo_class_XMLReader_readInnerXml arginfo_class_XMLReader_close
@@ -75,11 +75,11 @@ ZEND_END_ARG_INFO()
7575
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_XML, 0, 0, 1)
7676
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
7777
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
78-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
78+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
7979
ZEND_END_ARG_INFO()
8080

8181
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XMLReader_expand, 0, 0, 0)
82-
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, basenode, DOMNode, 1, "null")
82+
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, baseNode, DOMNode, 1, "null")
8383
ZEND_END_ARG_INFO()
8484

8585

ext/xmlreader/tests/002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ unlink($filename);
3636

3737
?>
3838
--EXPECT--
39-
XMLReader::open(): Argument #1 ($URI) cannot be empty
39+
XMLReader::open(): Argument #1 ($uri) cannot be empty
4040
books
4141
books

ext/xmlreader/tests/015-get-errors.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ $reader->close();
4646
unlink(__DIR__.'/015-get-errors.xml');
4747
?>
4848
--EXPECT--
49-
XMLReader::getAttributeNs(): Argument #2 ($namespaceURI) cannot be empty
49+
XMLReader::getAttributeNs(): Argument #2 ($uri) cannot be empty
5050
ns1:num: 1

ext/xmlreader/tests/015-move-errors.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ $reader->close();
4141
unlink(__DIR__.'/015-move-errors.xml');
4242
?>
4343
--EXPECT--
44-
XMLReader::moveToAttributeNs(): Argument #2 ($namespaceURI) cannot be empty
44+
XMLReader::moveToAttributeNs(): Argument #2 ($uri) cannot be empty

0 commit comments

Comments
 (0)