Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6517802

Browse files
committed
Allow Delete calls
1 parent 804e4ab commit 6517802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Http/Method.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Method extends AbstractEnum
7272
*/
7373
public static function isMethodSupported($method)
7474
{
75-
if (!in_array($method, [Method::GET, Method::POST])) {
75+
if (!in_array($method, [Method::GET, Method::POST, Method::DELETE])) {
7676
throw new \InvalidArgumentException('The method is not correct');
7777
}
7878
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /