Skip to content

Commit 434adf4

Browse files
committed
supporting any laravel version till 10
1 parent 90f586a commit 434adf4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"keywords": ["laravel", "javascript", "language", "translations", "routes"],
55
"type": "library",
66
"require": {
7-
"php": ">=7.1",
8-
"illuminate/support": "^5.1"
7+
"php": "^7.1||^8.2",
8+
"ext-json": "*",
9+
"laravel/laravel": "^6.20||^7.30||^8.83||^9.52||^10.14"
910
},
1011
"license": "MIT",
1112
"autoload": {

src/ViewComposers/ViewComposer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function compose(View $view)
3838
* @param string $prefix
3939
* @return array
4040
*/
41-
private function transArray(array $array, $prefix)
41+
private function transArray(array $array, string $prefix): array
4242
{
4343
$data = [];
4444

0 commit comments

Comments
 (0)