Skip to content

Commit 5383927

Browse files
dereuromarkclaude
andcommitted
Remove deprecated _execute() method from ContactForm
CakePHP 5.3 deprecates _execute() in favor of process(). The process() method was already in place, just remove the deprecated _execute() stub to avoid deprecation warnings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5e930e4 commit 5383927

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Form/ContactForm.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/**
1010
* A default ContactForm form fitting most apps.
11-
* Extend in your app to fill _execute() and to customize
11+
* Extend in your app to fill process() and to customize
1212
*
1313
* @author Mark Scherer
1414
* @license MIT
@@ -45,16 +45,6 @@ protected function _buildSchema(Schema $schema): Schema {
4545
->addField('body', ['type' => 'text']);
4646
}
4747

48-
/**
49-
* @deprecated Use process() instead.
50-
* @param array $data
51-
* @return bool
52-
*/
53-
protected function _execute(array $data): bool {
54-
// Overwrite in your extending class
55-
return true;
56-
}
57-
5848
/**
5949
* @param array $data
6050
* @return bool

0 commit comments

Comments
 (0)