Skip to content

Commit f477148

Browse files
author
darkdarin
committed
feat: laravel 10
1 parent edd75d3 commit f477148

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"laravel"
1414
],
1515
"require": {
16-
"php": ">=7.4",
16+
"php": "8.0.*|8.1.*|8.2.*",
1717
"ext-json": "*",
18-
"bensampo/laravel-enum": "^1.0|^2.0|^3.0|^4.0|^5.0,<5.2.0",
19-
"illuminate/support": "^6.0|^7.0|^8.0|^9.0",
20-
"illuminate/http": "^6.0|^7.0|^8.0|^9.0",
21-
"illuminate/container": "^6.0|^7.0|^8.0|^9.0",
22-
"illuminate/pipeline": "^6.0|^7.0|^8.0|^9.0",
23-
"illuminate/console": "^6.0|^7.0|^8.0|^9.0",
18+
"bensampo/laravel-enum": "^3.0|^4.0|^5.0|^6.0",
19+
"illuminate/support": "^8.0|^9.0|^10.0",
20+
"illuminate/http": "^8.0|^9.0|^10.0",
21+
"illuminate/container": "^8.0|^9.0|^10.0",
22+
"illuminate/pipeline": "^8.0|^9.0|^10.0",
23+
"illuminate/console": "^8.0|^9.0|^10.0",
2424
"phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0",
2525
"spiral/attributes": "^2.8",
2626
"tochka-developers/jsonrpc-annotations": "^1.1",

src/Route/Parameters/ParameterTypeEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public static function fromVarType(string $varType): self
9494
}
9595
}
9696

97-
public static function __set_state(array $array): self
97+
public static function __set_state(array $enum): static
9898
{
99-
return self::coerce($array['value']) ?? self::TYPE_MIXED();
99+
return self::coerce($enum['value']) ?? self::TYPE_MIXED();
100100
}
101101

102102
public function toJsonType(): string

0 commit comments

Comments
 (0)