Skip to content

Conversation

tm1000
Copy link
Contributor

@tm1000 tm1000 commented Oct 1, 2025

This fixes an invalid doc block that was introduced in #55916. Because there's a hanging parentheses Psalm errors with the following:

Uncaught Psalm\Exception\DocblockParseException: Closure(\Illuminate\Bus\Batch, \Throwable|null): mixed)|(callable(\Illuminate\Bus\Batch, \Throwable|null): mixed) is not a valid type: Invalid string Closure(\Illuminate\Bus\Batch, \Throwable|null): mixed)|(callable(\Illuminate\Bus\Batch, \Throwable|null): mixed)

@tm1000
Copy link
Contributor Author

tm1000 commented Oct 1, 2025

Ok so now the linter fails with Template type TParam of method Illuminate\Bus\PendingBatch::allowFailures() is not referenced in a parameter.. either way the original is wrong because it has an extra parentheses. Now that its fixed I assume its showing a new error as a result

Edit: Fixed by removing the conflicting php native types in favor of the docblock itself

@taylorotwell taylorotwell merged commit 4eff5b2 into laravel:12.x Oct 2, 2025
60 of 63 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