Skip to content

Commit 84c51df

Browse files
authored
Merge pull request #214 from phpcr/symfony-7
WIP: test with symfony 7 and php 8.3
2 parents 0117929 + 3921d65 commit 84c51df

19 files changed

+43
-127
lines changed

.github/workflows/test-application.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
- php-version: '7.3'
2323
- php-version: '7.4'
2424
- php-version: '8.0'
25-
- php-version: '8.0'
26-
dev-dependencies: true
2725
- php-version: '8.1'
2826
- php-version: '8.2'
27+
- php-version: '8.3'
28+
- php-version: '8.3'
2929

3030
steps:
3131
- name: Checkout project

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
2.x
5+
---
6+
7+
2.0.0 (unreleased)
8+
------------------
9+
10+
* Support Symfony 7
11+
* Test with PHP 8.3
12+
* Adjusted commands to have the return type declarations.
13+
414
1.x
515
---
616

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"require": {
3030
"php": "^7.2 || ^8.0",
3131
"phpcr/phpcr": "~2.1.0",
32-
"symfony/console": "^2.3 || ^3.0 || ^4.0 || ^5.0 || ^6.0"
32+
"symfony/console": "^2.3 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0"
3333
},
3434
"require-dev": {
3535
"ramsey/uuid": "^3.5",

src/PHPCR/Util/Console/Command/NodeDumpCommand.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@
2323
*/
2424
class NodeDumpCommand extends BaseCommand
2525
{
26-
/**
27-
* {@inheritdoc}
28-
*
29-
* @throws InvalidArgumentException
30-
*/
31-
protected function configure()
26+
protected function configure(): void
3227
{
3328
$this
3429
->setName('phpcr:node:dump')
@@ -56,13 +51,11 @@ protected function configure()
5651
}
5752

5853
/**
59-
* {@inheritdoc}
60-
*
6154
* @throws InvalidArgumentException
6255
* @throws Exception
6356
* @throws RepositoryException
6457
*/
65-
protected function execute(InputInterface $input, OutputInterface $output)
58+
protected function execute(InputInterface $input, OutputInterface $output): int
6659
{
6760
$session = $this->getPhpcrSession();
6861
$dumperHelper = $this->getPhpcrConsoleDumperHelper();

src/PHPCR/Util/Console/Command/NodeMoveCommand.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717
*/
1818
class NodeMoveCommand extends BaseCommand
1919
{
20-
/**
21-
* {@inheritdoc}
22-
*
23-
* @throws InvalidArgumentException
24-
*/
25-
protected function configure()
20+
protected function configure(): void
2621
{
2722
$this
2823
->setName('phpcr:node:move')
@@ -43,11 +38,9 @@ protected function configure()
4338
}
4439

4540
/**
46-
* {@inheritdoc}
47-
*
4841
* @throws InvalidArgumentException
4942
*/
50-
protected function execute(InputInterface $input, OutputInterface $output)
43+
protected function execute(InputInterface $input, OutputInterface $output): int
5144
{
5245
$session = $this->getPhpcrSession();
5346

src/PHPCR/Util/Console/Command/NodeRemoveCommand.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@
2121
*/
2222
class NodeRemoveCommand extends BaseCommand
2323
{
24-
/**
25-
* {@inheritdoc}
26-
*
27-
* @throws CliInvalidArgumentException
28-
*/
29-
protected function configure()
24+
protected function configure(): void
3025
{
3126
parent::configure();
3227

@@ -53,12 +48,10 @@ protected function configure()
5348
}
5449

5550
/**
56-
* {@inheritdoc}
57-
*
5851
* @throws CliInvalidArgumentException
5952
* @throws InvalidArgumentException
6053
*/
61-
protected function execute(InputInterface $input, OutputInterface $output)
54+
protected function execute(InputInterface $input, OutputInterface $output): int
6255
{
6356
$session = $this->getPhpcrSession();
6457

src/PHPCR/Util/Console/Command/NodeTouchCommand.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@
2121
*/
2222
class NodeTouchCommand extends BaseNodeManipulationCommand
2323
{
24-
/**
25-
* {@inheritdoc}
26-
*
27-
* @throws InvalidArgumentException
28-
*/
29-
protected function configure()
24+
protected function configure(): void
3025
{
3126
parent::configure();
3227

@@ -73,11 +68,9 @@ protected function configure()
7368
}
7469

7570
/**
76-
* {@inheritdoc}
77-
*
7871
* @throws InvalidArgumentException
7972
*/
80-
protected function execute(InputInterface $input, OutputInterface $output)
73+
protected function execute(InputInterface $input, OutputInterface $output): int
8174
{
8275
$helper = $this->getPhpcrHelper();
8376
$session = $this->getPhpcrSession();

src/PHPCR/Util/Console/Command/NodeTypeListCommand.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
*/
1616
class NodeTypeListCommand extends BaseCommand
1717
{
18-
/**
19-
* {@inheritdoc}
20-
*/
21-
protected function configure()
18+
protected function configure(): void
2219
{
2320
$this
2421
->setName('phpcr:node-type:list')
@@ -31,10 +28,7 @@ protected function configure()
3128
);
3229
}
3330

34-
/**
35-
* {@inheritdoc}
36-
*/
37-
protected function execute(InputInterface $input, OutputInterface $output)
31+
protected function execute(InputInterface $input, OutputInterface $output): int
3832
{
3933
$session = $this->getPhpcrSession();
4034
$ntm = $session->getWorkspace()->getNodeTypeManager();

src/PHPCR/Util/Console/Command/NodeTypeRegisterCommand.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@
2626
*/
2727
class NodeTypeRegisterCommand extends BaseCommand
2828
{
29-
/**
30-
* {@inheritdoc}
31-
*/
32-
protected function configure()
29+
protected function configure(): void
3330
{
3431
$this
3532
->setName('phpcr:node-type:register')
@@ -62,11 +59,9 @@ protected function configure()
6259
}
6360

6461
/**
65-
* {@inheritdoc}
66-
*
6762
* @throws InvalidArgumentException
6863
*/
69-
protected function execute(InputInterface $input, OutputInterface $output)
64+
protected function execute(InputInterface $input, OutputInterface $output): int
7065
{
7166
$definitions = $input->getArgument('cnd-file');
7267

src/PHPCR/Util/Console/Command/NodesUpdateCommand.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@
2020
*/
2121
class NodesUpdateCommand extends BaseNodeManipulationCommand
2222
{
23-
/**
24-
* {@inheritdoc}
25-
*
26-
* @throws CliInvalidArgumentException
27-
*/
28-
protected function configure()
23+
protected function configure(): void
2924
{
3025
parent::configure();
3126

@@ -85,12 +80,10 @@ protected function configure()
8580
}
8681

8782
/**
88-
* {@inheritdoc}
89-
*
9083
* @throws CliInvalidArgumentException
9184
* @throws InvalidArgumentException
9285
*/
93-
protected function execute(InputInterface $input, OutputInterface $output)
86+
protected function execute(InputInterface $input, OutputInterface $output): int
9487
{
9588
$query = $input->getOption('query');
9689
$queryLanguage = strtoupper($input->getOption('query-language'));

0 commit comments

Comments
 (0)