-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update phpcr-shell to Symfony 7 #224
Conversation
"symfony/yaml": "^5.0 || ^6.0", | ||
"symfony/dependency-injection": "^5.0 || ^6.0", | ||
"symfony/expression-language": "^5.0 || ^6.0", | ||
"phpcr/phpcr-utils": "^1.2 || ^2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we try the dev version for now, to avoid a broken release of phpcr-utils?
"phpcr/phpcr-utils": "^1.2 || ^2.0", | |
"phpcr/phpcr-utils": "^1.2 || ^2.0@dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did apply this in the CI to test against @dev
dependencies. We still are blocked by phpspec and behat here to test fully against Symfony 7:
d2705ab
to
382a754
Compare
88cfe66
to
57f5bb8
Compare
6f7560f
to
4a39311
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about the bc breaks? As this is more a shell as a library I think we could ignore them?
@@ -42,7 +42,7 @@ public function getNotes() | |||
/** | |||
* {@inheritdoc} | |||
*/ | |||
public function normalize($node, $format = null, array $context = []) | |||
public function normalize($node, $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technical a bc break but I think we could ignore it?
@@ -85,15 +85,15 @@ public function normalize($node, $format = null, array $context = []) | |||
/** | |||
* {@inheritdoc} | |||
*/ | |||
public function supportsNormalization($data, $format = null) | |||
public function supportsNormalization($data, $format = null, array $context = []): bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technical a bc break but I think we could ignore it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to adjust to symfony 7 BC breaks, right?
it would only be an issue if somebody extended the NodeNormalizer class. for this component imo that is not expected, agree that we don't do a new major version for that change.
{ | ||
return is_object($data) && $data instanceof NodeInterface; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function denormalize($data, $class, $format = null, array $context = []) | ||
public function denormalize($data, $class, $format = null, array $context = []): mixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technical a bc break but I think we could ignore it?
@@ -166,7 +166,7 @@ public function denormalize($data, $class, $format = null, array $context = []) | |||
/** | |||
* {@inheritdoc} | |||
*/ | |||
public function supportsDenormalization($data, $type, $format = null) | |||
public function supportsDenormalization($data, $type, $format = null): bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technical a bc break but I think we could ignore it
@@ -166,7 +166,7 @@ public function denormalize($data, $class, $format = null, array $context = []) | |||
/** | |||
* {@inheritdoc} | |||
*/ | |||
public function supportsDenormalization($data, $type, $format = null) | |||
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technical a bc break but I think we could ignore it?
0df8140
to
36cacbd
Compare
36cacbd
to
9b9b3c8
Compare
the ContainerAware concept has been removed in symfony 7. we should define the interface in the phpcr-shell and use that in BaseCommand and ShellApplication, at least for now. |
continue in #225 |
Build on top of: #223
Still on Symfony 6 instead of 7:
Following deps blocking this updates:
TODO