diff --git a/php/src/php/types/varray.php b/php/src/php/types/varray.php index bc46388..3a6b416 100644 --- a/php/src/php/types/varray.php +++ b/php/src/php/types/varray.php @@ -9,7 +9,7 @@ class varray { } static function ensuren(&$array): void { - if ($array !== null) varray::ensure($array); + if ($array !== null) self::ensure($array); } static function with($value): array { diff --git a/php/src/ref/schema/ref_analyze.php b/php/src/ref/ref_analyze.php similarity index 95% rename from php/src/ref/schema/ref_analyze.php rename to php/src/ref/ref_analyze.php index 060d68b..24dff0c 100644 --- a/php/src/ref/schema/ref_analyze.php +++ b/php/src/ref/ref_analyze.php @@ -1,5 +1,5 @@ "bool", + "integer" => "int", + "flt" => "float", "double" => "float", "dbl" => "float", + "function" => "func", "callable" => "func", + ]; +} diff --git a/php/src/ref/schema/ref_types.php b/php/src/ref/schema/ref_types.php deleted file mode 100644 index d7ce1d4..0000000 --- a/php/src/ref/schema/ref_types.php +++ /dev/null @@ -1,11 +0,0 @@ - "bool", - "integer" => "int", - "flt" => "float", "double" => "float", "dbl" => "float", - "func" => "callable", "function" => "callable", - ]; -}