Applied rector with PHP8.1 migration rules

This commit is contained in:
Jan Böhmer 2023-06-11 14:15:46 +02:00
parent dc6a67c2f0
commit 7ee01d9a05
303 changed files with 1228 additions and 3465 deletions

View file

@ -26,9 +26,7 @@ namespace App\Services\LogSystem;
*/
class EventCommentNeededHelper
{
protected array $enforce_change_comments_for;
public const VALID_OPERATION_TYPES = [
final public const VALID_OPERATION_TYPES = [
'part_edit',
'part_create',
'part_delete',
@ -38,15 +36,12 @@ class EventCommentNeededHelper
'datastructure_delete',
];
public function __construct(array $enforce_change_comments_for)
public function __construct(protected array $enforce_change_comments_for)
{
$this->enforce_change_comments_for = $enforce_change_comments_for;
}
/**
* Checks if a log change comment is needed for the given operation type
* @param string $comment_type
* @return bool
*/
public function isCommentNeeded(string $comment_type): bool
{