-
Notifications
You must be signed in to change notification settings - Fork 128
[BUGFIX] Mitigate "Using null as an array offset is deprecated" #422
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
Conversation
|
Looks like some tests need updates unrelated to this pr. I will have a look at that. |
pushed again, should fix the phpstan stuff. I was to over-sensible and not checked things, lesser Not sure about the other tests - not that deep into this package. |
Using `DocBlockFactory->create()` with a phpdocblock hanging a `@throws` tag followed by a exception class name emits following PHP 8.5.0 deprecation: ``` Using null as an array offset is deprecated, use an empty string instead ``` in `StandardTagFactory->getArgumentsForParametersFromWiring()`. This change uses the null-coalsce operator to fallback to an empty string for the value which should be used as an array key instead of using `null` to mitigate the deprecation notice with PHP8.5.0 and matches the behaviour in earlier PHP versions without the deprecation message.
|
Thanks, I will take over from here. |
Thanks ❤️ |
This change updates dependency "phpdocumentor/reflection-docblock"
to ensure having latest PHP8.5.0 related fixes on board. [1][2]
Used command(s):
> BIN_COMPOSER="$( which composer )" \
&& ${BIN_COMPOSER} require --no-update \
-d typo3/sysext/extbase \
'phpdocumentor/reflection-docblock':'^5.6.5' \
&& ${BIN_COMPOSER} require \
'phpdocumentor/reflection-docblock':'^5.6.5'
[1] phpDocumentor/ReflectionDocBlock#422
[2] https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.6.5
Resolves: #108359
Releases: main, 13.4, 12.4
Change-Id: Ie73e578949983c0039d33f882ff3b1ab3d2fdf8c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91910
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Garvin Hicking <garvin@hick.ing>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Garvin Hicking <garvin@hick.ing>
This change updates dependency "phpdocumentor/reflection-docblock"
to ensure having latest PHP8.5.0 related fixes on board. [1][2]
Used command(s):
> BIN_COMPOSER="$( which composer )" \
&& ${BIN_COMPOSER} require --no-update \
-d typo3/sysext/extbase \
'phpdocumentor/reflection-docblock':'^5.6.5' \
&& ${BIN_COMPOSER} require \
'phpdocumentor/reflection-docblock':'^5.6.5'
[1] phpDocumentor/ReflectionDocBlock#422
[2] https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.6.5
Resolves: #108359
Releases: main, 13.4, 12.4
Change-Id: Ie73e578949983c0039d33f882ff3b1ab3d2fdf8c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91931
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
This change updates dependency "phpdocumentor/reflection-docblock"
to ensure having latest PHP8.5.0 related fixes on board. [1][2]
Used command(s):
> BIN_COMPOSER="$( which composer )" \
&& ${BIN_COMPOSER} require --no-update \
-d typo3/sysext/extbase \
'phpdocumentor/reflection-docblock':'^5.6.5' \
&& ${BIN_COMPOSER} require \
'phpdocumentor/reflection-docblock':'^5.6.5'
[1] phpDocumentor/ReflectionDocBlock#422
[2] https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.6.5
Resolves: #108359
Releases: main, 13.4, 12.4
Change-Id: Ie73e578949983c0039d33f882ff3b1ab3d2fdf8c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91910
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Garvin Hicking <garvin@hick.ing>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Garvin Hicking <garvin@hick.ing>
This change updates dependency "phpdocumentor/reflection-docblock"
to ensure having latest PHP8.5.0 related fixes on board. [1][2]
Used command(s):
> BIN_COMPOSER="$( which composer )" \
&& ${BIN_COMPOSER} require --no-update \
-d typo3/sysext/extbase \
'phpdocumentor/reflection-docblock':'^5.6.5' \
&& ${BIN_COMPOSER} require \
'phpdocumentor/reflection-docblock':'^5.6.5'
[1] phpDocumentor/ReflectionDocBlock#422
[2] https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.6.5
Resolves: #108359
Releases: main, 13.4, 12.4
Change-Id: Ie73e578949983c0039d33f882ff3b1ab3d2fdf8c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91932
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
This change updates dependency "phpdocumentor/reflection-docblock"
to ensure having latest PHP8.5.0 related fixes on board. [1][2]
Used command(s):
> BIN_COMPOSER="$( which composer )" \
&& ${BIN_COMPOSER} require --no-update \
-d typo3/sysext/extbase \
'phpdocumentor/reflection-docblock':'^5.6.5' \
&& ${BIN_COMPOSER} require \
'phpdocumentor/reflection-docblock':'^5.6.5'
[1] phpDocumentor/ReflectionDocBlock#422
[2] https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.6.5
Resolves: #108359
Releases: main, 13.4, 12.4
Change-Id: Ie73e578949983c0039d33f882ff3b1ab3d2fdf8c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91931
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
This change updates dependency "phpdocumentor/reflection-docblock"
to ensure having latest PHP8.5.0 related fixes on board. [1][2]
Used command(s):
> BIN_COMPOSER="$( which composer )" \
&& ${BIN_COMPOSER} require --no-update \
-d typo3/sysext/extbase \
'phpdocumentor/reflection-docblock':'^5.6.5' \
&& ${BIN_COMPOSER} require \
'phpdocumentor/reflection-docblock':'^5.6.5'
[1] phpDocumentor/ReflectionDocBlock#422
[2] https://github.com/phpDocumentor/ReflectionDocBlock/releases/tag/5.6.5
Resolves: #108359
Releases: main, 13.4, 12.4
Change-Id: Ie73e578949983c0039d33f882ff3b1ab3d2fdf8c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91932
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
Using
DocBlockFactory->create()with a phpdocblockhanging a
@throwstag followed by a exception classname emits following PHP 8.5.0 deprecation:
in
StandardTagFactory->getArgumentsForParametersFromWiring().This change uses the null-coalsce operator to fallback to
an empty string for the value which should be used as an
array key instead of using
nullto mitigate the deprecationnotice with PHP8.5.0 and matches the behaviour in earlier
PHP versions without the deprecation message.
This is blocking the TYPO3 pipelines to raise to PHP8.5.0
release images for automatic testing, which means that
after merging it a release is required aka would be very
nice to have it as soon as possible and the time fits in.