Skip to content

Commit 559ce4f

Browse files
authored
Merge pull request #39 from BCLibraries/make-new-functions-static
Make new() functions static
2 parents a3372e5 + a087a27 commit 559ce4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lti/LTI_Deep_Link_Resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class LTI_Deep_Link_Resource {
1010
private $custom_params = [];
1111
private $target = 'iframe';
1212

13-
public function new() {
13+
public static function new() {
1414
return new LTI_Deep_Link_Resource();
1515
}
1616

src/lti/LTI_Deployment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class LTI_Deployment {
55

66
private $deployment_id;
77

8-
public function new() {
8+
public static function new() {
99
return new LTI_Deployment();
1010
}
1111

0 commit comments

Comments
 (0)