Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hook callback false positives for
mixed
return type (#130)
* Increase the memory limit during unit tests. * Add some failing tests. * More tests for `mixed`. * Boop. * Add a test for implicit mixed return type. * Add another implicit return type test for an action callback. * Update tests/data/hook-callback.php Co-authored-by: Viktor Szépe <viktor@szepe.net> * Implicit mixed is not the responsibility of this library. * Add support for filters that return explicit mixed. Props @herndlm. * Add support for actions that incorrectly return explicit mixed. * Fix the implicit handling. * Update composer.json Co-authored-by: Viktor Szépe <viktor@szepe.net>
- Loading branch information
1 parent
4800e7c
commit 3930c97
Showing
3 changed files
with
59 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters