[STATIC ANALYSIS] Started removal process for the errors found by PHPStan

This commit is contained in:
Diogo Machado 2020-11-28 20:48:13 +00:00 committed by Hugo Sales
parent f319ccea78
commit f18a2a4bb6
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
4 changed files with 7 additions and 1 deletions

View File

@ -21,6 +21,8 @@
namespace App\Util\Exception; namespace App\Util\Exception;
use function App\Core\I18n\_m;
class InvalidFormException extends ClientException class InvalidFormException extends ClientException
{ {
public function __construct() public function __construct()

View File

@ -21,6 +21,8 @@
namespace App\Util\Exception; namespace App\Util\Exception;
use function App\Core\I18n\_m;
class NoSuchNoteException extends ClientException class NoSuchNoteException extends ClientException
{ {
public function __construct() public function __construct()

View File

@ -30,6 +30,8 @@
namespace App\Util\Notification; namespace App\Util\Notification;
use function App\Core\I18n\_m;
abstract class AbstractTransport abstract class AbstractTransport
{ {
/** /**

View File

@ -54,7 +54,7 @@ class Notification
public function __construct(int $type, Profile $profile) public function __construct(int $type, Profile $profile)
{ {
$this->tyoe = $type; $this->type = $type;
$this->profile = $profile; $this->profile = $profile;
} }
} }