Skip to content

Commit

Permalink
Merge pull request #2365 from WordPress/feature/helpers-use-type-decl…
Browse files Browse the repository at this point in the history
…arations-when-possible

Helpers: add type declarations whenever possible
  • Loading branch information
dingo-d authored Aug 20, 2023
2 parents 1eb217b + 0b548b9 commit afbd469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WordPress/Helpers/RulesetPropertyHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class RulesetPropertyHelper {
* Defaults to true.
* @return array
*/
public static function merge_custom_array( $custom, $base = array(), $flip = true ) {
public static function merge_custom_array( $custom, array $base = array(), $flip = true ) {
if ( true === $flip ) {
$base = array_filter( $base );
}
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Helpers/WPDBTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ trait WPDBTrait {
*
* @return bool Whether this is a $wpdb method call.
*/
final protected function is_wpdb_method_call( File $phpcsFile, $stackPtr, $target_methods ) {
final protected function is_wpdb_method_call( File $phpcsFile, $stackPtr, array $target_methods ) {
$tokens = $phpcsFile->getTokens();
if ( isset( $tokens[ $stackPtr ] ) === false ) {
return false;
Expand Down

0 comments on commit afbd469

Please sign in to comment.