File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 21
21
],
22
22
"require" : {
23
23
"php" : " >=7.2" ,
24
- "illuminate/contracts" : " 5.5.*|5.6.*|5.7.*|5.8.*" ,
25
- "illuminate/support" : " 5.5.*|5.6.*|5.7.*|5.8.*" ,
24
+ "illuminate/contracts" : " 5.5.*|5.6.*|5.7.*|5.8.*|6.0.* " ,
25
+ "illuminate/support" : " 5.5.*|5.6.*|5.7.*|5.8.*|6.0.* " ,
26
26
"phayes/geophp" : " ~1.2"
27
27
},
28
28
"require-dev" : {
29
29
"mockery/mockery" : " ^1" ,
30
30
"phpunit/phpunit" : " ~7.0.1|~8.0" ,
31
- "psy/psysh" : " ^0.5.1 " ,
32
- "symfony/thanks" : " ^1.0 " ,
31
+ "psy/psysh" : " ^0.9.0 " ,
32
+ "symfony/thanks" : " ^1.1 " ,
33
33
"symfony/var-dumper" : " ~3.0|^4.2"
34
34
},
35
35
"autoload" : {
Original file line number Diff line number Diff line change 3
3
namespace Spinen \Geometry \Support ;
4
4
5
5
use Geometry ;
6
+ use Illuminate \Support \Str ;
6
7
use InvalidArgumentException ;
7
8
use RuntimeException ;
8
9
@@ -113,8 +114,8 @@ public function __get($name)
113
114
}
114
115
115
116
// Shortcut to the getters
116
- if (method_exists ($ this , 'get ' . studly_case ($ name ))) {
117
- return $ this ->{'get ' . studly_case ($ name )}();
117
+ if (method_exists ($ this , 'get ' . Str:: studly ($ name ))) {
118
+ return $ this ->{'get ' . Str:: studly ($ name )}();
118
119
}
119
120
120
121
throw new RuntimeException (sprintf ("Undefined property: %s " , $ name ));
You can’t perform that action at this time.
0 commit comments