File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
22
}
23
23
],
24
24
"require" : {
25
- "php" : " >=7.3 " ,
25
+ "php" : " >=8.0 " ,
26
26
"barryvdh/laravel-debugbar" : " ^3.6"
27
27
},
28
28
"require-dev" : {
29
- "orchestra/testbench" : " ^6 .0" ,
29
+ "orchestra/testbench" : " ^7 .0" ,
30
30
"phpunit/phpunit" : " ^9.0"
31
31
},
32
32
"autoload" : {
Original file line number Diff line number Diff line change @@ -36,19 +36,19 @@ public function collect()
36
36
$ company_date_format = company_date_format () . ' ( ' . company_date (Date::createFromTimestamp (0 )) . ') ' ;
37
37
38
38
if ($ account_id = setting ('default.account ' , null )) {
39
- $ default_account = Account::find ($ account_id )->getAttributes ();
39
+ $ default_account = Account::find ($ account_id )? ->getAttributes();
40
40
}
41
41
42
42
if ($ currency_code = setting ('default.currency ' )) {
43
- $ default_currency = Currency::code ($ currency_code )->first ()->getAttributes ();
43
+ $ default_currency = Currency::code ($ currency_code )->first ()? ->getAttributes();
44
44
}
45
45
46
46
if ($ income_category_id = setting ('default.income_category ' , null )) {
47
- $ default_income_category = Category::find ($ income_category_id )->getAttributes ();
47
+ $ default_income_category = Category::find ($ income_category_id )? ->getAttributes();
48
48
}
49
49
50
50
if ($ expense_category_id = setting ('default.expense_category ' , null )) {
51
- $ default_expense_category = Category::find ($ expense_category_id )->getAttributes ();
51
+ $ default_expense_category = Category::find ($ expense_category_id )? ->getAttributes();
52
52
}
53
53
54
54
$ default_locale = setting ('default.locale ' );
You can’t perform that action at this time.
0 commit comments