mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Enforce return and parameter types
This commit is contained in:
@@ -363,7 +363,7 @@ class Server extends Model
|
||||
*
|
||||
* @throws ServerStateConflictException
|
||||
*/
|
||||
public function validateCurrentState()
|
||||
public function validateCurrentState(): void
|
||||
{
|
||||
if (
|
||||
$this->isSuspended() ||
|
||||
@@ -382,7 +382,7 @@ class Server extends Model
|
||||
* sure the server can be transferred and is not currently being transferred
|
||||
* or installed.
|
||||
*/
|
||||
public function validateTransferState()
|
||||
public function validateTransferState(): void
|
||||
{
|
||||
if (
|
||||
!$this->isInstalled() ||
|
||||
|
||||
Reference in New Issue
Block a user