Skip to content

Commit

Permalink
Add support for laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinbier committed Apr 9, 2024
1 parent 3fb2987 commit 70fefd3
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"require": {
"php": "^8.0",
"spatie/laravel-package-tools": "^1.14.0",
"illuminate/contracts": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"illuminate/validation": "^9.0|^10.0"
"illuminate/contracts": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"illuminate/validation": "^9.0|^10.0|^11.0"
},
"require-dev": {
"laravel/pint": "^1.0",
Expand Down Expand Up @@ -67,4 +67,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
2 changes: 1 addition & 1 deletion resources/lang/it/validation.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return[
return [
'unique_with' => 'Questa combinazione tra :fields già esiste.',
];
2 changes: 1 addition & 1 deletion resources/lang/nl/validation.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return[
return [
'unique_with' => 'Deze combinatie met de velden :fields bestaat al.',
];
2 changes: 1 addition & 1 deletion resources/lang/pt-BR/validation.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return[
return [
'unique_with' => 'A combinação de :fields já existe.',
];
2 changes: 1 addition & 1 deletion resources/lang/ru/validation.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return[
return [
'unique_with' => 'Эта комбинация полей :fields уже существует.',
];
2 changes: 1 addition & 1 deletion resources/lang/tr/validation.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return[
return [
'unique_with' => ':fields alan kombinasyonları daha önceden kaydedilmiş.',
];
2 changes: 1 addition & 1 deletion resources/lang/zh-CN/validation.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return[
return [
'unique_with' => '字段组合 :fields 已经存在。',
];
2 changes: 1 addition & 1 deletion src/RuleParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RuleParser

protected $parsed = false;

public function __construct(string $attribute = null, string $value = null, array $parameters = [], array $data = [])
public function __construct(?string $attribute = null, ?string $value = null, array $parameters = [], array $data = [])
{
$this->primaryField = $this->attribute = $attribute;
$this->primaryValue = $value;
Expand Down
4 changes: 2 additions & 2 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function getValidationMessage(): string
}

function getRuleParser(
string $attribute = null,
string $value = null,
?string $attribute = null,
?string $value = null,
array $parameters = [],
array $data = []
): RuleParser {
Expand Down

0 comments on commit 70fefd3

Please sign in to comment.