Skip to content

Commit 16ae025

Browse files
author
王强
committed
update phpqueryobject.php
1 parent 4e9f900 commit 16ae025

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "wpollen/PHPQuery",
2+
"name": "wpollen/phpquery",
33
"description": ".DomDocument",
44
"type": "stability",
55
"license": "mit",

phpQuery/phpQueryObject.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66
* @package phpQuery
77
* @method phpQueryObject clone() clone()
88
* @method phpQueryObject empty() empty()
9-
* @method phpQueryObject next() next($selector = null)
10-
* @method phpQueryObject prev() prev($selector = null)
119
* @property Int $length
1210
*/
13-
class phpQueryObject
14-
implements Iterator, Countable, ArrayAccess {
11+
class phpQueryObject implements Iterator, Countable, ArrayAccess {
1512
public $documentID = null;
1613
/**
1714
* DOMDocument class.
@@ -2282,7 +2279,8 @@ public function plugin($class, $file = null) {
22822279
* @return unknown_type
22832280
*/
22842281
public static function extend($class, $file = null) {
2285-
return $this->plugin($class, $file);
2282+
$pqo = new self();
2283+
return $pqo->plugin($class, $file);
22862284
}
22872285
/**
22882286
*
@@ -2983,6 +2981,7 @@ public function key(){
29832981
* Proper functionality is choosed automagicaly.
29842982
*
29852983
* @see phpQueryObject::_next()
2984+
* @param string $cssSelector
29862985
* @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery
29872986
*/
29882987
public function next($cssSelector = null){

test-cases/document-types/document-utf8.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<body>
99
<span>Hello World!</span>
1010
<span>ąśżźć</span>
11-
<a href='<?php foreach($foo as $bar} { print $foo['1'] } ?>'>Attr test</a>
11+
<a href='<?php foreach ($foo as $bar) { print $foo['1']; } ?>'>Attr test</a>
1212
</body>
1313
</html>

0 commit comments

Comments
 (0)