use strict types in new php classes

Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2022-09-05 11:27:00 +02:00
parent 7dc64de2de
commit 6bfb54e2b3
7 changed files with 23 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it) * @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
* *

View File

@@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it) * @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
* *

View File

@@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it) * @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
* *

View File

@@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it) * @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
* *
@@ -29,7 +32,7 @@ class SessionClosedEvent extends Event {
private $boardId; private $boardId;
private $userId; private $userId;
public function __construct($boardId, $userId) { public function __construct(int $boardId, string $userId) {
parent::__construct(); parent::__construct();
$this->boardId = $boardId; $this->boardId = $boardId;

View File

@@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it) * @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
* *
@@ -30,7 +33,7 @@ class SessionCreatedEvent extends Event {
private $boardId; private $boardId;
private $userId; private $userId;
public function __construct($boardId, $userId) { public function __construct(int $boardId, string $userId) {
parent::__construct(); parent::__construct();
$this->boardId = $boardId; $this->boardId = $boardId;

View File

@@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it) * @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
* *

View File

@@ -1,4 +1,7 @@
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it) * @copyright Copyright (c) 2022, chandi Langecker (git@chandi.it)
* *