@@ -321,7 +321,7 @@ |
||
321 | 321 | * The name of the Extension Class minus the extension prefix. |
322 | 322 | * @param string $file_version |
323 | 323 | * The version of the extension from the **file**, not the Database. |
324 | - * @return string|boolean |
|
324 | + * @return false|string |
|
325 | 325 | * If the given extension (by $name) requires updating, the installed |
326 | 326 | * version is returned, otherwise, if the extension doesn't require |
327 | 327 | * updating, false. |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | * |
529 | 529 | * @param string $path |
530 | 530 | * the path containing the directories to create. |
531 | - * @param string|integer $mode (optional) |
|
531 | + * @param integer $mode (optional) |
|
532 | 532 | * the permissions (in octal) of the directories to create. Defaults to 0755 |
533 | 533 | * @param boolean $silent (optional) |
534 | 534 | * true if an exception should be raised if an error occurs, false |
@@ -709,6 +709,10 @@ discard block |
||
709 | 709 | public static function getPostData() |
710 | 710 | { |
711 | 711 | if (!function_exists('merge_file_post_data')) { |
712 | + |
|
713 | + /** |
|
714 | + * @param string $type |
|
715 | + */ |
|
712 | 716 | function merge_file_post_data($type, array $file, &$post) |
713 | 717 | { |
714 | 718 | foreach ($file as $key => $value) { |
@@ -928,7 +932,7 @@ discard block |
||
928 | 932 | * the path of the file to write. |
929 | 933 | * @param mixed $data |
930 | 934 | * the data to write to the file. |
931 | - * @param integer|string $perm (optional) |
|
935 | + * @param integer $perm (optional) |
|
932 | 936 | * the permissions as an octal number to set set on the resulting file. |
933 | 937 | * this defaults to 0644 (if omitted or set to null) |
934 | 938 | * @param string $mode (optional) |
@@ -1198,7 +1202,7 @@ discard block |
||
1198 | 1202 | * @param mixed $strip_root (optional) |
1199 | 1203 | * If null, the full path to the file will be returned, otherwise the value |
1200 | 1204 | * of `strip_root` will be removed from the file path. |
1201 | - * @param array $exclude (optional) |
|
1205 | + * @param string[] $exclude (optional) |
|
1202 | 1206 | * ignore directories listed in this array. this defaults to an empty array. |
1203 | 1207 | * @param boolean $ignore_hidden (optional) |
1204 | 1208 | * ignore hidden directory (i.e.directories that begin with a period). this defaults |
@@ -1250,7 +1254,7 @@ discard block |
||
1250 | 1254 | * @param string $dir (optional) |
1251 | 1255 | * the path of the directory to construct the multi-dimensional array |
1252 | 1256 | * for. this defaults to '.'. |
1253 | - * @param array|string $filters (optional) |
|
1257 | + * @param string $filters (optional) |
|
1254 | 1258 | * either a regular expression to filter the files by or an array of |
1255 | 1259 | * files to include. |
1256 | 1260 | * @param boolean $recurse (optional) |
@@ -1427,7 +1431,7 @@ discard block |
||
1427 | 1431 | * the file name within the file path to which the source file is to be moved. |
1428 | 1432 | * @param string $tmp_name |
1429 | 1433 | * the full path name of the source file to move. |
1430 | - * @param integer|string $perm (optional) |
|
1434 | + * @param integer $perm (optional) |
|
1431 | 1435 | * the permissions to apply to the moved file. this defaults to 0644 @since |
1432 | 1436 | * Symphony 2.7.0. It was 0777 in 2.6.x and less. |
1433 | 1437 | * @return boolean |
@@ -1230,7 +1230,7 @@ discard block |
||
1230 | 1230 | * If the date type is set, only the calendar will be shown in the suggestion dropdown. |
1231 | 1231 | * |
1232 | 1232 | * @since Symphony 2.6.0 |
1233 | - * @return array |
|
1233 | + * @return string[] |
|
1234 | 1234 | */ |
1235 | 1235 | public function fetchSuggestionTypes() |
1236 | 1236 | { |
@@ -1323,7 +1323,7 @@ discard block |
||
1323 | 1323 | * |
1324 | 1324 | * @param string $string |
1325 | 1325 | * The string to test. |
1326 | - * @return boolean |
|
1326 | + * @return boolean|null |
|
1327 | 1327 | * true if the string is prefixed with `regexp:` or `not-regexp:`, false otherwise. |
1328 | 1328 | */ |
1329 | 1329 | protected static function isFilterRegex($string) |
@@ -1343,7 +1343,7 @@ discard block |
||
1343 | 1343 | * @link https://dev.mysql.com/doc/refman/en/regexp.html |
1344 | 1344 | * @param string $filter |
1345 | 1345 | * The full filter, eg. `regexp: ^[a-d]` |
1346 | - * @param array $columns |
|
1346 | + * @param string[] $columns |
|
1347 | 1347 | * The array of columns that need the given `$filter` applied to. The conditions |
1348 | 1348 | * will be added using `OR` when using `regexp:` but they will be added using `AND` |
1349 | 1349 | * when using `not-regexp:` |
@@ -1404,7 +1404,7 @@ discard block |
||
1404 | 1404 | * @since Symphony 2.7.0 |
1405 | 1405 | * @param string $string |
1406 | 1406 | * The string to test. |
1407 | - * @return boolean |
|
1407 | + * @return boolean|null |
|
1408 | 1408 | * true if the string is prefixed with `sql:`, false otherwise. |
1409 | 1409 | */ |
1410 | 1410 | protected static function isFilterSQL($string) |
@@ -1422,7 +1422,7 @@ discard block |
||
1422 | 1422 | * @link https://dev.mysql.com/doc/refman/en/regexp.html |
1423 | 1423 | * @param string $filter |
1424 | 1424 | * The full filter, eg. `sql: NULL` |
1425 | - * @param array $columns |
|
1425 | + * @param string[] $columns |
|
1426 | 1426 | * The array of columns that need the given `$filter` applied to. The conditions |
1427 | 1427 | * will be added using `OR`. |
1428 | 1428 | * @param string $joins |