mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-17 07:10:27 +00:00
General: Remove discouraged @return void annotations.
Such `@return void` annotations must not be used in WordPress core's PHP code, except bundled themes, third-party libraries, and PHP compatibility shims. Props isabel_brison, swissspidy. Fixes #59619. git-svn-id: https://develop.svn.wordpress.org/trunk@56943 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -478,7 +478,6 @@ function _flatten_blocks( &$blocks ) {
|
||||
* @access private
|
||||
*
|
||||
* @param array $block a parsed block.
|
||||
* @return void
|
||||
*/
|
||||
function _inject_theme_attribute_in_template_part_block( &$block ) {
|
||||
if (
|
||||
@@ -496,7 +495,6 @@ function _inject_theme_attribute_in_template_part_block( &$block ) {
|
||||
* @access private
|
||||
*
|
||||
* @param array $block a parsed block.
|
||||
* @return void
|
||||
*/
|
||||
function _remove_theme_attribute_from_template_part_block( &$block ) {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user