[wp-trac] [WordPress Trac] #64703: Code Modernization: Replace void in PHPDoc union return types with null in class-wpdb.php
WordPress Trac
noreply at wordpress.org
Tue Feb 24 08:43:20 UTC 2026
#64703: Code Modernization: Replace void in PHPDoc union return types with null in
class-wpdb.php
--------------------------+------------------------------
Reporter: apermo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 4.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by apermo):
Replying to [comment:4 SergeyBiryukov]:
> Perhaps an explicit `return false` should be added at the end?
@westonruter suggested adding a `@return never` to `dead_db()`, and that
solved the issue. While the `return false;` wouldn't have hurt either,
that solution is cleaner.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64703#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list