Skip to content

Commit 74860d9

Browse files
authored
Merge pull request #4 from Pod-Point/OA-136-making-the-dependency-compatible-all-the-way-to-laravel-10
feat(OA-136): Supporting any laravel version till 10
2 parents 90f586a + 434adf4 commit 74860d9

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)