mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-28 12:29:35 +00:00
Fixed phpstan issues
This commit is contained in:
parent
390736cf5a
commit
58d4207b49
6 changed files with 9 additions and 15 deletions
|
|
@ -69,8 +69,8 @@ class CheckRequirementsCommand extends Command
|
|||
if ($io->isVerbose()) {
|
||||
$io->comment('Checking PHP version...');
|
||||
}
|
||||
//We recommend PHP 8.2, but 8.1 is the minimum
|
||||
if (PHP_VERSION_ID < 80200) {
|
||||
//We recommend PHP 8.2, but 8.2 is the minimum
|
||||
if (PHP_VERSION_ID < 80400) {
|
||||
$io->warning('You are using PHP '. PHP_VERSION .'. This will work, but a newer version is recommended.');
|
||||
} elseif (!$only_issues) {
|
||||
$io->success('PHP version is sufficient.');
|
||||
|
|
@ -84,7 +84,7 @@ class CheckRequirementsCommand extends Command
|
|||
$io->success('You are using a 64-bit system.');
|
||||
}
|
||||
} else {
|
||||
$io->warning('You are using a system with an unknown bit size. That is interesting xD');
|
||||
$io->warning(' areYou using a system with an unknown bit size. That is interesting xD');
|
||||
}
|
||||
|
||||
//Check if opcache is enabled
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class ImportPartKeeprCommand extends Command
|
|||
protected PKDatastructureImporter $datastructureImporter, protected PKPartImporter $partImporter, protected PKImportHelper $importHelper,
|
||||
protected PKOptionalImporter $optionalImporter)
|
||||
{
|
||||
parent::__construct(self::$defaultName);
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function configure(): void
|
||||
|
|
|
|||
|
|
@ -39,14 +39,7 @@ final class UpgradePermissionsSchemaCommand extends Command
|
|||
{
|
||||
public function __construct(private readonly PermissionSchemaUpdater $permissionSchemaUpdater, private readonly EntityManagerInterface $em, private readonly EventCommentHelper $eventCommentHelper)
|
||||
{
|
||||
parent::__construct(self::$defaultName);
|
||||
}
|
||||
|
||||
protected function configure(): void
|
||||
{
|
||||
$this
|
||||
->setDescription(self::$defaultDescription)
|
||||
;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class UsersPermissionsCommand extends Command
|
|||
{
|
||||
$this->userRepository = $entityManager->getRepository(User::class);
|
||||
|
||||
parent::__construct(self::$defaultName);
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
protected function configure(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue