Skip to content
Snippets Groups Projects
Commit eabf7ab4 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #180137 by c960657: added type hinting to make it easier to track down errors.

parent e85f1b32
No related branches found
No related tags found
No related merge requests found
......@@ -1318,7 +1318,7 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL
* When creating links in modules, consider whether l() could be a better
* alternative than url().
*/
function url($path = NULL, $options = array()) {
function url($path = NULL, array $options = array()) {
// Merge in defaults.
$options += array(
'fragment' => '',
......@@ -1491,7 +1491,7 @@ function drupal_attributes($attributes = array()) {
* @return
* an HTML string containing a link to the given path.
*/
function l($text, $path, $options = array()) {
function l($text, $path, array $options = array()) {
// Merge in defaults.
$options += array(
'attributes' => array(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment