wuliupo / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

makeArray fails due to incorrect var name in argument list #187

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. phpQuery::makeArray(pq('a'))
2.
3.

What is the expected output? What do you see instead?
I expected to have an array returned. Instead I get the following error: 
Notice: Undefined variable: object in C:\server\PHP\PEAR\phpQuery.php on line 
1001

What version of the product are you using? On what operating system?
version 0.9.5 on Windows 7

Please provide any additional information below.
I fixed the problem locally by making the method signature as follows:
public static function makeArray($object) instead of:
public static function makeArray($obj)

Notice the body of the method looks for $object not $obj

Original issue reported on code.google.com by rhythmicdevil@gmail.com on 11 Jul 2011 at 8:22