Skip to content

Commit 695829c

Browse files
authored
Update create_news_items/001.php (#9297)
Updated Filters configuration to explicitly declare the $methods property as an array, ensuring compatibility with strict typing in PHP.
1 parent 4c8b782 commit 695829c

File tree

1 file changed

+1
-1
lines changed
  • user_guide_src/source/tutorial/create_news_items

1 file changed

+1
-1
lines changed

user_guide_src/source/tutorial/create_news_items/001.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Filters extends BaseConfig
88
{
99
// ...
1010

11-
public $methods = [
11+
public array $methods = [
1212
'POST' => ['csrf'],
1313
];
1414

0 commit comments

Comments
 (0)