Skip to content

Conversation

@FeBe95
Copy link
Contributor

@FeBe95 FeBe95 commented Jan 10, 2026

Changes the type of the $assertion parameter of the assert() function from Throwable|string|null to mixed. This follows the type that is stated in the official documentation:

Description

 assert(mixed $assertion, Throwable|string|null $description = null): bool

-- https://www.php.net/manual/en/function.assert.php

I guess this was a simple copy and paste error from when (with PHP 7.0.0) the second parameter $description was introduced, which actually is of type Throwable|string|null.

@LolGleb LolGleb self-assigned this Jan 12, 2026
@LolGleb LolGleb merged commit 3720bcf into JetBrains:master Jan 12, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants