Skip to content

Implicitly marking parameter $len as nullable is deprecated #657

@Rockburner

Description

@Rockburner

When using error_reporting(E_ALL), and ini_set('display_errors', 'on'); in a codebase using PHP 8.4 we're getting the following deprecation notice:

Rollbar\Utilities::validateString(): Implicitly marking parameter $len as nullable is deprecated, the explicit nullable type must be used instead

The fix is relatively easy:

line 32 : int|array $len = null,

change to

line 32: int|array|null $len = null,

Looks like most of the null declarations are already in place, I'm assuming this was just missed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions