mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Fixed some more inspection issues
This commit is contained in:
parent
de96aae9a5
commit
29d1d49aca
83 changed files with 153 additions and 172 deletions
|
@ -48,5 +48,5 @@ use Symfony\Component\Validator\Constraint;
|
|||
*/
|
||||
class ValidRange extends Constraint
|
||||
{
|
||||
public $message = 'validator.invalid_range';
|
||||
public string $message = 'validator.invalid_range';
|
||||
}
|
||||
|
|
|
@ -31,5 +31,5 @@ use Symfony\Component\Validator\Constraint;
|
|||
*/
|
||||
class NoLockout extends Constraint
|
||||
{
|
||||
public $message = 'validator.noLockout';
|
||||
public string $message = 'validator.noLockout';
|
||||
}
|
||||
|
|
|
@ -35,9 +35,9 @@ class NoneOfItsChildren extends Constraint
|
|||
/**
|
||||
* @var string The message used if it is tried to assign a object as its own parent
|
||||
*/
|
||||
public $self_message = 'validator.noneofitschild.self';
|
||||
public string $self_message = 'validator.noneofitschild.self';
|
||||
/**
|
||||
* @var string The message used if it is tried to use one of the children for as parent
|
||||
*/
|
||||
public $children_message = 'validator.noneofitschild.children';
|
||||
public string $children_message = 'validator.noneofitschild.children';
|
||||
}
|
||||
|
|
|
@ -35,5 +35,5 @@ class UrlOrBuiltin extends Url
|
|||
/**
|
||||
* @var array A list of the placeholders that are treated as builtin
|
||||
*/
|
||||
public $allowed_placeholders = Attachment::BUILTIN_PLACEHOLDER;
|
||||
public array $allowed_placeholders = Attachment::BUILTIN_PLACEHOLDER;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue