Closed clue closed 1 year ago
I suggest adding checkMissingCallableSignature: true
in the phpstan config, so that it reports missing callable signatures.
I suggest adding
checkMissingCallableSignature: true
in the phpstan config, so that it reports missing callable signatures.
Go ahead, PRs welcome :+1: Tested this out locally and appears to report a number of low-priority types for internal functions and tests only, but happy to consider this if the changeset is reasonable :+1:
I'll let you merge this PR first then, so that those types are already defined.
This changeset describes all callable arguments with types for
Promise
andDeferred
. In particular, this makes it easier to detect incorrect usage using static analysis, such as when omitting required arguments as discussed in #213 and #138.Builds on top of #247, #246 and others Closes #252