Skip to content

Commit 1a225b9

Browse files
authored
Merge pull request #16 from defstudio/php8.4-support
php 8.4 support
2 parents e119221 + 462cfcc commit 1a225b9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.4|^8.0",
23+
"php": "^8.1|^8.4",
2424
"illuminate/support": "^8.0|^9.0|^10.0",
2525
"maatwebsite/excel": "^3.1",
2626
"tightenco/ziggy": "^1.0.0 || ^2.0.0",

src/helpers.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,28 +115,28 @@ function array_unarrow(array $arrow_array): array
115115
}
116116

117117
if (!function_exists('t')) {
118-
function t(string $key = null, array $replace = [], string $locale = null): string
118+
function t(?string $key = null, array $replace = [], ?string $locale = null): string
119119
{
120120
return __($key, $replace, $locale);
121121
}
122122
}
123123

124124
if (!function_exists('T')) {
125-
function T(string $key = null, array $replace = [], string $locale = null): string
125+
function T(?string $key = null, array $replace = [], ?string $locale = null): string
126126
{
127127
return ucfirst(__($key, $replace, $locale));
128128
}
129129
}
130130

131131
if (!function_exists('TT')) {
132-
function TT(string $key = null, array $replace = [], string $locale = null): string
132+
function TT(?string $key = null, array $replace = [], ?string $locale = null): string
133133
{
134134
return ucwords(__($key, $replace, $locale));
135135
}
136136
}
137137

138138
if (!function_exists('TTT')) {
139-
function TTT(string $key = null, array $replace = [], string $locale = null): string
139+
function TTT(?string $key = null, array $replace = [], ?string $locale = null): string
140140
{
141141
return strtoupper(__($key, $replace, $locale));
142142
}

0 commit comments

Comments
 (0)