Skip to content

Commit

Permalink
docs: Fix usage method signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb authored May 23, 2024
1 parent ef4b765 commit c98cbf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ in a consistent and safe way and can be included as a composer dependency.
* [Usage](#usage)
* [`SuperGlobals::get_get_var( $var, $default = null )`](#get_get_var-var-default-null)
* [`SuperGlobals::get_post_var( $var, $default = null )`](#get_post_var-var-default-null)
* [`SuperGlobals::get_raw_superglobal( $var, $default = null )`](#get_raw_superglobal-var-default-null)
* [`SuperGlobals::get_sanitized_superglobal( $var, $default = null )`](#get_sanitized_superglobal-var-default-null)
* [`SuperGlobals::get_raw_superglobal( $var )`](#get_raw_superglobal-string-superglobal)
* [`SuperGlobals::get_sanitized_superglobal( $var )`](#get_sanitized_superglobal-string-superglobal)
* [`SuperGlobals::get_server_var( $var, $default = null )`](#get_server_var-var-default-null)
* [`SuperGlobals::get_var( $var, $default = null )`](#get_var-var-default-null)
* [`SuperGlobals::sanitize_deep( &$value )`](#sanitize_deep-value)
Expand Down Expand Up @@ -71,7 +71,7 @@ $var = SuperGlobals::get_post_var( 'post_id' );
$var = SuperGlobals::get_post_var( 'post_id', 12 );
```

### `SuperGlobals::get_raw_superglobal( $var, $default = null )`
### `SuperGlobals::get_raw_superglobal( string $superglobal )`

Gets the requested superglobal variable. Options are `ENV`, `GET`, `POST`, `REQUEST`, or `SERVER`.

Expand All @@ -96,7 +96,7 @@ $request = SuperGlobals::get_raw_superglobal( 'REQUEST' );
$server = SuperGlobals::get_raw_superglobal( 'SERVER' );
```

### `SuperGlobals::get_sanitized_superglobal( $var, $default = null )`
### `SuperGlobals::get_sanitized_superglobal( string $superglobal )`

Gets the requested superglobal variable, sanitized. Options are `ENV`, `GET`, `POST`, `REQUEST`, or `SERVER`.

Expand Down

0 comments on commit c98cbf5

Please sign in to comment.