-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fixed deprecated null
parameter in trim()
call
#124
Conversation
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.
A test (failing before this change) is needed here
31a2ba0
to
f986d0a
Compare
While trying to write the simpler test I could I ended up triggering a deprecation in a different part of the code but it represents the same issue. It is just triggered on The problem is that I see a deprecation error in phpunit's output but it doesn't fail. It seems like the error is not being converted to an exception but it I think it should.
|
f986d0a
to
fa22c1f
Compare
See: https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md#9510---2021-09-25 |
@froschdesign thanks, should I change that setting as part of this PR then? |
DocScanner may raise a Deprecated error with PHP 8.1 if shortDescription is used before initialization, the default value being null Signed-off-by: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
fa22c1f
to
9e537d2
Compare
I found the input that was causing the original deprecation notice and updated the test accordingly. It's an invalid docblock, but that's what Still worth fixing the deprecation IMO. |
…ing to upstream type improvements Signed-off-by: Marco Pivetta <ocramius@gmail.com>
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.
Thanks @mtorromeo!
null
parameter in trim()
call
Description
DocScanner
may raise the following error with PHP 8.1 ifshortDescription
is used before initialization, the default value beingnull
.