We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fd37a commit 1190734Copy full SHA for 1190734
application/libraries/Format.php
@@ -24,7 +24,7 @@ class Format {
24
* @param string data format the file was provided in
25
* @return Factory
26
*/
27
- public static function factory($data, $from_type = null)
+ public function factory($data, $from_type = null)
28
{
29
// Stupid stuff to emulate the "new static()" stuff in this libraries PHP 5.3 equivilent
30
$class = __CLASS__;
@@ -68,7 +68,7 @@ public function to_array($data = null)
68
69
if (is_object($value) or is_array($value))
70
71
- $array[$key] = static::to_array($value);
+ $array[$key] = $this->to_array($value);
72
}
73
74
else
0 commit comments