-
Notifications
You must be signed in to change notification settings - Fork 291
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
PHP 8.1 issue - passing a null parameter #397
Comments
This should have been fixed in 7299750 - are you sure you're using 4.x? Can you tell me which line it's occurring on in 4.2.3? |
Hi Jonathan
Seems to be in 4.2.0
public function renderChildren(Value $o)
{
$contents = [];
$tabs = [];
foreach ($o->getRepresentations() as $rep) {
$result = $this->renderTab($o, $rep);
if (\strlen($result)) {
$contents[] = $result;
$tabs[] = $rep;
}
}
…On Fri, 11 Nov 2022 at 21:11, Jonathan Vollebregt ***@***.***> wrote:
This should have been fixed in 7299750
<7299750>
- are you sure you're using 4.x? Can you tell me which line it's occurring
on in 4.2.3?
—
Reply to this email directly, view it on GitHub
<#397 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIFNMTBZBOCJRRCMPKI6MLWH2Y7XANCNFSM6AAAAAAR55RJNM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes I know what the code looks like, but what line is the error message reporting exactly? There's no code path in Otherwise, what's your input data? Can you give a snippet to reproduce it? |
Hi |
Alright, then I'm going to close this
Kint only has php version and dev dependencies. If their version requirements are too strict you should be able to load the phar and load composer autoloader in append mode as a hacky workaround |
Drupal users see https://gitlab.com/drupalspoons/devel/-/issues/416 on how to update |
Using PHP 8.1 I see:
Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Kint\Renderer\RichRenderer->renderChildren() (line 329 of vendor/kint-php/kint/src/Renderer/RichRenderer.php).
Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Kint\Object\BasicObject->getModifiers() (line 134 of vendor/kint-php/kint/src/Object/BasicObject.php).
This is in in v3.3 (used in Drupal 9) but also seems to be present in current version 4.2.0 (for RichRenderer.php)
This is documented in https://www.php.net/manual/en/migration81.deprecated.php
The fixes are straightforward changing strlen() for !empty() etc
The text was updated successfully, but these errors were encountered: