Skip to content

Commit

Permalink
Disable psalm for the time being.
Browse files Browse the repository at this point in the history
### Changed
- Update code style, related to #348.
- Disable psalm for the time being, as it does not support PHP 8.4 yet. Activation is being tracked in ticket #349.
  • Loading branch information
Syndesi committed Nov 24, 2024
1 parent dab7e8d commit 1d190f5
Show file tree
Hide file tree
Showing 170 changed files with 184 additions and 181 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ jobs:
psalm:
runs-on: ubuntu-latest
if: false
name: 'Psalm'
timeout-minutes: 5
needs:
Expand Down Expand Up @@ -183,7 +184,7 @@ jobs:
needs:
- test-unit
- phpstan
- psalm
# - psalm
- cs-lint
- test-mutant
- test-mess-detector
Expand Down Expand Up @@ -227,7 +228,7 @@ jobs:
needs:
- test-unit
- phpstan
- psalm
# - psalm
- cs-lint
- test-mutant
- test-mess-detector
Expand Down Expand Up @@ -266,7 +267,7 @@ jobs:
needs:
- test-unit
- phpstan
- psalm
# - psalm
- cs-lint
- test-mutant
- test-mess-detector
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Upgrade PHP to 8.4.1, closes #348.
- Update dependencies, related to #348.
- Update code style, related to #348.
- Disable psalm for the time being, as it does not support PHP 8.4 yet. Activation is being tracked in ticket #349.

## 0.1.16 - 2024-11-06
### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Attribute/EndpointSupportsEtag.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
readonly class EndpointSupportsEtag
{
public function __construct(
private EtagType $etagType
private EtagType $etagType,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Command/BackupCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(
private CypherEntityManager $cypherEntityManager,
private FilesystemOperator $backupStorage,
private ElementToRawService $elementToRawService,
private ParameterBagInterface $bag
private ParameterBagInterface $bag,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/BackupFetchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class BackupFetchCommand extends Command
private EmberNexusStyle $io;

public function __construct(
private FilesystemOperator $backupStorage
private FilesystemOperator $backupStorage,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/BackupListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BackupListCommand extends Command

public function __construct(
private FilesystemOperator $backupStorage,
private LoggerInterface $logger
private LoggerInterface $logger,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/BackupLoadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(
private RawToElementService $rawToElementService,
private EventDispatcherInterface $eventDispatcher,
private AppStateService $appStateService,
private ElasticEntityManager $elasticEntityManager
private ElasticEntityManager $elasticEntityManager,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/CacheClearEtagCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CacheClearEtagCommand extends Command
private OutputStyle $io;

public function __construct(
private RedisClient $redisClient
private RedisClient $redisClient,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DatabaseDropCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
private MongoEntityManager $mongoEntityManager,
private ElasticEntityManager $elasticEntityManager,
private Client $redisClient,
private AMQPStreamConnection $AMQPStreamConnection
private AMQPStreamConnection $AMQPStreamConnection,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/HealthcheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
private MongoEntityManager $mongoEntityManager,
private ElasticEntityManager $elasticEntityManager,
private RedisClient $redisClient,
private AMQPStreamConnection $AMQPStreamConnection
private AMQPStreamConnection $AMQPStreamConnection,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TestCommand extends Command
private OutputStyle $io;

public function __construct(
private CypherEntityManager $cypherEntityManager
private CypherEntityManager $cypherEntityManager,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/TokenCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
private ElementManager $elementManager,
private CypherEntityManager $cypherEntityManager,
private TokenGenerator $tokenGenerator,
private EmberNexusConfiguration $emberNexusConfiguration
private EmberNexusConfiguration $emberNexusConfiguration,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/TokenRevokeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct(
private RedisClient $redisClient,
private EmberNexusConfiguration $emberNexusConfiguration,
private AuthProvider $authProvider,
private LoggerInterface $logger
private LoggerInterface $logger,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/UserCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(
private ElementManager $elementManager,
private CypherEntityManager $cypherEntityManager,
private UserPasswordHasher $userPasswordHasher,
private EmberNexusConfiguration $emberNexusConfiguration
private EmberNexusConfiguration $emberNexusConfiguration,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Console/EmberNexusOutputWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class EmberNexusOutputWrapper implements OutputInterface
{
public function __construct(
private OutputInterface $output
private OutputInterface $output,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/DeleteElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct(
private ElementManager $elementManager,
private AuthProvider $authProvider,
private AccessChecker $accessChecker,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/GetChildrenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
private CollectionService $collectionService,
private AuthProvider $authProvider,
private AccessChecker $accessChecker,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/GetElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(
private ElementResponseService $elementResponseService,
private AuthProvider $authProvider,
private AccessChecker $accessChecker,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/GetParentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
private CollectionService $collectionService,
private AuthProvider $authProvider,
private AccessChecker $accessChecker,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/GetRelatedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
private CollectionService $collectionService,
private AuthProvider $authProvider,
private AccessChecker $accessChecker,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/PatchElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
private AuthProvider $authProvider,
private AccessChecker $accessChecker,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
private UpdateElementFromRawDataService $updateElementFromRawDataService
private UpdateElementFromRawDataService $updateElementFromRawDataService,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/PostElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
private Client400MissingPropertyExceptionFactory $client400MissingPropertyExceptionFactory,
private Client400BadContentExceptionFactory $client400BadContentExceptionFactory,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
private CreateElementFromRawDataService $createElementFromRawDataService
private CreateElementFromRawDataService $createElementFromRawDataService,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/PostIndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
private Client400MissingPropertyExceptionFactory $client400MissingPropertyExceptionFactory,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
private Client400BadContentExceptionFactory $client400BadContentExceptionFactory,
private CreateElementFromRawDataService $createElementFromRawDataService
private CreateElementFromRawDataService $createElementFromRawDataService,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Element/PutElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(
private AccessChecker $accessChecker,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
private UpdateElementFromRawDataService $updateElementFromRawDataService,
private ResetElementPropertiesService $resetElementPropertiesService
private ResetElementPropertiesService $resetElementPropertiesService,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Error/ExceptionDetailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class ExceptionDetailController extends AbstractController
{
public function __construct(
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/File/DeleteElementFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class DeleteElementFileController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/File/GetElementFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class GetElementFileController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/File/PatchElementFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class PatchElementFileController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/File/PostElementFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class PostElementFileController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/File/PutElementFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class PutElementFileController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Search/PostSearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(
private CollectionService $collectionService,
private Client400BadContentExceptionFactory $client400BadContentExceptionFactory,
private Client400MissingPropertyExceptionFactory $client400MissingPropertyExceptionFactory,
private Server500InternalServerErrorExceptionFactory $server500InternalServerErrorExceptionFactory
private Server500InternalServerErrorExceptionFactory $server500InternalServerErrorExceptionFactory,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GetInstanceConfigurationController extends AbstractController
public function __construct(
private EmberNexusConfiguration $emberNexusConfiguration,
private ParameterBagInterface $bag,
private Client403ForbiddenExceptionFactory $client403ForbiddenExceptionFactory
private Client403ForbiddenExceptionFactory $client403ForbiddenExceptionFactory,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GetWellKnownSecurityTxtController extends AbstractController
public const string PATH_TO_WELL_KNOWN_SECURITY_TXT = '/well-known-security.txt';

public function __construct(
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/User/DeleteTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
private ElementManager $elementManager,
private AuthProvider $authProvider,
private Client401UnauthorizedExceptionFactory $client401UnauthorizedExceptionFactory,
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory
private Client404NotFoundExceptionFactory $client404NotFoundExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/User/GetTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
private ElementResponseService $elementResponseService,
private AuthProvider $authProvider,
private Client403ForbiddenExceptionFactory $client403ForbiddenExceptionFactory,
private Server500LogicExceptionFactory $server500LogicExceptionFactory
private Server500LogicExceptionFactory $server500LogicExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/User/PostRegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(
private EmberNexusConfiguration $emberNexusConfiguration,
private Client400ReservedIdentifierExceptionFactory $client400ReservedIdentifierExceptionFactory,
private Client403ForbiddenExceptionFactory $client403ForbiddenExceptionFactory,
private RequestUtilService $requestUtilService
private RequestUtilService $requestUtilService,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/User/PostTokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(
private Client400BadContentExceptionFactory $client400BadContentExceptionFactory,
private Client401UnauthorizedExceptionFactory $client401UnauthorizedExceptionFactory,
private RequestUtilService $requestUtilService,
private SecurityUtilService $securityUtilService
private SecurityUtilService $securityUtilService,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/WebDAV/CopyElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class CopyElementController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/WebDAV/LockElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class LockElementController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/WebDAV/MkcolElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class MkcolElementController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/WebDAV/MoveElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class MoveElementController extends AbstractController
{
public function __construct(
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory
private Server501NotImplementedExceptionFactory $server501NotImplementedExceptionFactory,
) {
}

Expand Down
Loading

0 comments on commit 1d190f5

Please sign in to comment.