use strict types in new php classes

Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2023-01-03 12:43:59 +01:00
parent 7dc64de2de
commit 6bfb54e2b3
7 changed files with 23 additions and 2 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
*
@@ -29,7 +32,7 @@ class SessionClosedEvent extends Event {
private $boardId;
private $userId;
public function __construct($boardId, $userId) {
public function __construct(int $boardId, string $userId) {
parent::__construct();
$this->boardId = $boardId;
+4 -1
View File
@@ -1,4 +1,7 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
*
@@ -30,7 +33,7 @@ class SessionCreatedEvent extends Event {
private $boardId;
private $userId;
public function __construct($boardId, $userId) {
public function __construct(int $boardId, string $userId) {
parent::__construct();
$this->boardId = $boardId;