` and `
` tags).
+ * @type string $type Optional. Message type, controls HTML class. Possible values include 'error',
+ * 'success', 'warning', 'info'. Default 'error'.
+ * }
+ * }
+ * @psalm-return array
+ */
+function get_settings_errors( $setting = '', $sanitize = false ) : array {}
+
+/**
* @param string $path
- * @param "https"|"http"|"relative"|"rest" $scheme
+ * @param 'https'|'http'|'relative'|'rest' $scheme
* @return string
*/
-function home_url( string $path = null, $scheme = null ) : string {
-
-}
+function home_url( string $path = '', $scheme = null ) : string {}
/**
- *
- * @template Args of array
- * @template Defaults of array
- * @psalm-param Args $args
- * @psalm-param Defaults $defaults
- * @psalm-return Defaults&Args
+ * @template TArgs of array
+ * @template TDefaults of array
+ * @psalm-param TArgs $args
+ * @psalm-param TDefaults $defaults
+ * @psalm-return TDefaults&TArgs
*/
-function wp_parse_args( $args, $defaults ) {
-}
+function wp_parse_args( $args, $defaults ) {}
/**
* @param WP_Error|mixed $error
* @psalm-assert-if-true WP_Error $error
*/
-function is_wp_error( $error ) : bool {
-
-}
+function is_wp_error( $error ) : bool {}
/**
* @template T
@@ -145,6 +175,4 @@ function is_wp_error( $error ) : bool {
* @param K $column
* @return list
*/
-function wp_list_pluck( array $list, string $column, string $index_key = null ) : array {
-
-}
+function wp_list_pluck( array $list, string $column, string $index_key = null ) : array {}
diff --git a/test.php b/test.php
index 16826e0..88c6c34 100644
--- a/test.php
+++ b/test.php
@@ -19,3 +19,11 @@ function filter_upload_dir( array $dir ) : array {
add_filter( 'admin_notices', function () {
echo 'hi';
} );
+
+$uploads = wp_get_upload_dir();
+
+$url_host = wp_parse_url( 'https://github.com:443/psalm/psalm-plugin-wordpress?query=1#frag', PHP_URL_HOST );
+
+$url_port = wp_parse_url( 'https://github.com:443/psalm/psalm-plugin-wordpress?query=1#frag', PHP_URL_PORT );
+
+$url_parts = wp_parse_url( 'https://github.com:443/psalm/psalm-plugin-wordpress?query=1#frag' );