Skip to content

Commit 5337704

Browse files
committed
update
1 parent 9c8cd3f commit 5337704

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.0.0 - 2025-05-12
4+
- Support for laravel 12.x
5+
- Drop support for php 7.4
6+
- Drop support for laravel < 10.x
7+
38
## 0.4.0 - 2024-08-15
49
- Support for laravel 11.x
510

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"schema"
1010
],
1111
"require": {
12-
"php" : "^7.4 | ^8.0",
13-
"laravel/framework": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0",
12+
"php" : "^8.0",
13+
"laravel/framework": "^10.0 | ^11.0 | ^12.0",
1414
"swaggest/json-schema": "^0.12.33"
1515
},
1616
"autoload": {

src/JsonSchemaRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(FilesystemFactory $filesystem, array $config)
2525
$this->config = $config;
2626
}
2727

28-
public function setContext(Context $context = null): self
28+
public function setContext(Context | null $context = null): self
2929
{
3030
$this->schemaContext = $context;
3131

src/Rules/JsonSchemaRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class JsonSchemaRule implements Rule
1919
/**
2020
* @param string|null $schema schema name to validate
2121
*/
22-
public function __construct(string $schema = null, bool $detailedMessage = true)
22+
public function __construct(string | null $schema = null, bool $detailedMessage = true)
2323
{
2424
$this->repository = Container::getInstance()->make(JsonSchemaRepository::class);
2525
$this->schema = $schema;

0 commit comments

Comments
 (0)