Skip to content

Commit

Permalink
Merge pull request #34 from honsa/master
Browse files Browse the repository at this point in the history
Craft 4 update changes
  • Loading branch information
matt-west authored Sep 10, 2022
2 parents c34f11a + 0de340e commit 2a977e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
],
"require": {
"craftcms/cms": "^3.1",
"craftcms/cms": "^4.0.3",
"guzzlehttp/guzzle": "^6.3 || ^7.2"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/CraftRecaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class CraftRecaptcha extends Plugin
*
* @var string
*/
public $schemaVersion = '1.0.0';
public string $schemaVersion = '1.0.0';

// Public Methods
// =========================================================================
Expand Down Expand Up @@ -163,7 +163,7 @@ function (PluginEvent $event) {
*
* @return \craft\base\Model|null
*/
protected function createSettingsModel()
protected function createSettingsModel() : ? \craft\base\Model
{
return new Settings();
}
Expand Down
4 changes: 2 additions & 2 deletions src/models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function getSecretKey(): string
return Craft::parseEnv($this->secretKey);
}

public function behaviors()
public function behaviors() :array
{
return [
'parser' => [
Expand All @@ -104,7 +104,7 @@ public function behaviors()
*
* @return array
*/
public function rules()
public function rules() :array
{
return [
['siteKey', 'string'],
Expand Down

0 comments on commit 2a977e8

Please sign in to comment.