浏览代码

fixed Type.typeOf() for PHP

Franco Ponticelli 17 年之前
父节点
当前提交
5a6414e303
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 1
      doc/CHANGES.txt
  2. 0 1
      std/Type.hx

+ 1 - 1
doc/CHANGES.txt

@@ -8,7 +8,7 @@ TODO inlining : substitute class+function type parameters in order to have fully
 
 2008-??-??: 2.01
 	fixed SPOD for PHP
-	fixed Type.enumParameters() for PHP
+	fixed Type.enumParameters() and Type.typeOf() for PHP
 	fixed null references in class constructors for array arguments
 	fixed php.Boot.__string_rec() when invoked from toString
 	added neko.NativeString and neko.NativeArray

+ 0 - 1
std/Type.hx

@@ -591,7 +591,6 @@ class Type {
 				return TClass(Array);
 			}
 			if(__call__("is_string", v)) {
-				if(__call__("class_exists", v)) return TObject;
 				if(php.Boot.__is_lambda(v)) return TFunction;
 				return TClass(String);
 			}