Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ public function getPost($key = NULL, $default = NULL)
*/
public function getFile($key)
{
if (func_num_args() > 1) {
trigger_error('Calling getFile() with multiple keys is deprecated.', E_USER_DEPRECATED);
return Nette\Utils\Arrays::get($this->files, func_get_args(), NULL);
}

return isset($this->files[$key]) ? $this->files[$key] : NULL;
}

Expand Down Expand Up @@ -206,6 +201,7 @@ public function isMethod($method)
*/
public function isPost()
{
trigger_error('Method isPost() is deprecated, use isMethod(\'POST\') instead.', E_USER_DEPRECATED);
return $this->isMethod('POST');
}

Expand Down
8 changes: 1 addition & 7 deletions src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ public function getHeaders()
*/
public static function date($time = NULL)
{
trigger_error('Method date() is deprecated, use Nette\Http\Helpers::formatDate() instead.', E_USER_DEPRECATED);
return Helpers::formatDate($time);
}

Expand Down Expand Up @@ -285,13 +286,6 @@ public function deleteCookie($name, $path = NULL, $domain = NULL, $secure = NULL
}


/** @internal @deprecated */
public function removeDuplicateCookies()
{
trigger_error('Use Nette\Http\Helpers::removeDuplicateCookies()', E_USER_WARNING);
}


private function checkHeaders()
{
if (headers_sent($file, $line)) {
Expand Down