[wp-trac] [WordPress Trac] #49728: [PHP 8] Prepare for the internal functions throwing `TypeError` or `ValueError` exceptions on unexpected types/values

WordPress Trac noreply at wordpress.org
Thu Nov 16 11:28:05 UTC 2023


#49728: [PHP 8] Prepare for the internal functions throwing `TypeError` or
`ValueError` exceptions on unexpected types/values
-------------------------------------------------+-------------------------
 Reporter:  ayeshrajans                          |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.5
Component:  Build/Test Tools                     |     Version:
 Severity:  minor                                |  Resolution:
 Keywords:  needs-patch needs-unit-tests needs-  |     Focuses:
  dev-note php80 needs-docs                      |
-------------------------------------------------+-------------------------

Comment (by dalleyne):

 Hello,

 I'm interested in contributing to this ticket and I need some guidance on
 where exactly `extend the expectedIncorrectUsage annotation to check the
 PHP version` should occur within the WordPress codebase.

 It looks like https://github.com/WordPress/wordpress-
 develop/blob/trunk/tests/phpunit/includes/abstract-testcase.php#L560, but
 I'm unsure.

 Could you please specify which files or components need to be updated to
 implement this change? Additionally, if there's any existing documentation
 or examples related to this annotation's current implementation, that
 would be highly beneficial for understanding the context and requirements
 of the task.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49728#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list