Skip to content

Commit

Permalink
Update create_news_items/001.php (codeigniter4#9297)
Browse files Browse the repository at this point in the history
Updated Filters configuration to explicitly declare the $methods property as an array, ensuring compatibility with strict typing in PHP.
  • Loading branch information
TechnoKaa authored Dec 2, 2024
1 parent 4c8b782 commit 695829c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/tutorial/create_news_items/001.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Filters extends BaseConfig
{
// ...

public $methods = [
public array $methods = [
'POST' => ['csrf'],
];

Expand Down

0 comments on commit 695829c

Please sign in to comment.