Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/Controller/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Form extends AbstractController
*
* @var array
*/
protected $errors;
protected $errors = [];

/**
* Holds the prefix value of all parameters of this form.
Expand Down
3 changes: 3 additions & 0 deletions Classes/Finisher/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Typoheads\Formhandler\Finisher;

use TYPO3\CMS\Core\Utility\GeneralUtility;
use Typoheads\Formhandler\Mailer\MailerInterface;

/* *
* This script is part of the TYPO3 project - inspiring people to share! *
Expand Down Expand Up @@ -68,6 +69,8 @@
*/
class Mail extends AbstractFinisher
{
protected MailerInterface $emailObj;
protected ?string $predefined = null;
/**
* The main method called by the controller
*
Expand Down
3 changes: 3 additions & 0 deletions Classes/Interceptor/AbstractInterceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
*/
abstract class AbstractInterceptor extends AbstractComponent
{
protected array $doNotSanitizeFields = [];
protected array $removeChars = [];

/**
* Logs an action of an interceptor, e.g. if Interceptor_IPBlocking blocked a request.
*
Expand Down
2 changes: 2 additions & 0 deletions Classes/Session/AbstractSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ abstract class AbstractSession extends AbstractClass
*/
protected $started = false;

protected array $gp = [];

/**
* Starts a new session
*/
Expand Down
4 changes: 4 additions & 0 deletions Classes/View/AbstractView.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ abstract class AbstractView extends AbstractPlugin
*/
public $extKey = 'formhandler';

protected array $settings = [];
protected array $errors = [];

protected ?ContentObjectRenderer $cObj = null;

/**
Expand All @@ -60,6 +63,7 @@ abstract class AbstractView extends AbstractPlugin
protected Configuration $configuration;
protected Globals $globals;
protected GeneralUtility $utilityFuncs;
protected ?string $predefined = null;

/**
* The model of the view
Expand Down
4 changes: 3 additions & 1 deletion Classes/View/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class Form extends AbstractView
*/
protected $disableEncodingFields;

protected ?array $masterTemplates = null;

/**
* Main method called by the controller.
*
Expand Down Expand Up @@ -64,7 +66,7 @@ public function render($gp, $errors)
}

//read master template
if (!isset($this->masterTemplates)) {
if ($this->masterTemplates === null) {
$this->readMasterTemplates();
}

Expand Down