Skip to content

Commit d03f614

Browse files
grawerplchriskacerguis
authored andcommitted
* Update Format.php Allow access to class witch USE statement * Update Format.php Remove notification "Non-static method ... should not be called statically"
1 parent d70785d commit d03f614

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

application/libraries/Format.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
namespace Restserver\Libraries;
3+
use Exception;
24

35
defined('BASEPATH') OR exit('No direct script access allowed');
46

@@ -114,7 +116,7 @@ public function __construct($data = NULL, $from_type = NULL)
114116
*
115117
* @return object Instance of the format class
116118
*/
117-
public function factory($data, $from_type = NULL)
119+
public static function factory($data, $from_type = NULL)
118120
{
119121
// $class = __CLASS__;
120122
// return new $class();

0 commit comments

Comments
 (0)