Skip to content

Commit

Permalink
Merge pull request #19 from Shadow243/correct-fatal-error-by-rename
Browse files Browse the repository at this point in the history
Rename BaseSieveAction to BaseFilterAction
  • Loading branch information
Shadow243 authored Jun 17, 2024
2 parents 5acbe4f + 5844184 commit d013d04
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/Filters/Actions/AddHeaderFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Please refer to https://datatracker.ietf.org/doc/html/rfc5293#section-4
*/
class AddHeaderFilterAction extends BaseSieveAction
class AddHeaderFilterAction extends BaseFilterAction
{
public $require = ['editheader'];

Expand Down
4 changes: 2 additions & 2 deletions src/Filters/Actions/BaseFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use PhpSieveManager\Exceptions\FilterActionParamException;

abstract class BaseSieveAction implements FilterAction {
abstract class BaseFilterAction implements FilterAction {
protected array $params;

public function __construct(array $params = []) {
Expand All @@ -24,7 +24,7 @@ protected function validateParams() {
protected function validateTypes() {
$paramTypes = $this->getParamTypes();
foreach ($this->params as $key => $value) {
if (isset($paramTypes[$key]) && !$this->isValidType($key, $value)) {
if (isset($paramTypes[$key]) && !$this->isValidType($value, $paramTypes[$key])) {
throw new FilterActionParamException("Invalid type for parameter: $key. Expected " . $value);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/BaseFlagFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

abstract class BaseFlagFilterAction extends BaseSieveAction
abstract class BaseFlagFilterAction extends BaseFilterAction
{
public $require = ['imap4flags'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/BaseRejectFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

abstract class BaseRejectFilterAction extends BaseSieveAction
abstract class BaseRejectFilterAction extends BaseFilterAction
{
public $require = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/ConvertFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Please refer to https://www.rfc-editor.org/rfc/rfc6558.html
*/
class ConvertFilterAction extends BaseSieveAction
class ConvertFilterAction extends BaseFilterAction
{
public $require = ['convert'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/DeleteHeaderFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Please refer to https://datatracker.ietf.org/doc/html/rfc5293#section-5
*/
class DeleteHeaderFilterAction extends BaseSieveAction
class DeleteHeaderFilterAction extends BaseFilterAction
{
public $require = ['editheader'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/DiscardFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

class DiscardFilterAction extends BaseSieveAction
class DiscardFilterAction extends BaseFilterAction
{
/**
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/EncloseFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Please refer to https://www.rfc-editor.org/rfc/rfc5703.html#section-6
*/
class EncloseFilterAction extends BaseSieveAction
class EncloseFilterAction extends BaseFilterAction
{
public $require = ['enclose'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/ExtractTextFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Please refer to https://www.rfc-editor.org/rfc/rfc5703.html#page-11
*/
class ExtractTextFilterAction extends BaseSieveAction
class ExtractTextFilterAction extends BaseFilterAction
{
public $require = ['extracttext'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/FileIntoFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

class FileIntoFilterAction extends BaseSieveAction
class FileIntoFilterAction extends BaseFilterAction
{
public $require = ['fileinto'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/KeepFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

class KeepFilterAction extends BaseSieveAction
class KeepFilterAction extends BaseFilterAction
{
public $require = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/NotifyFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Please refer to https://datatracker.ietf.org/doc/rfc5435/
*/
class NotifyFilterAction extends BaseSieveAction
class NotifyFilterAction extends BaseFilterAction
{
public $require = ['enotify'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/RedirectFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

class RedirectFilterAction extends BaseSieveAction
class RedirectFilterAction extends BaseFilterAction
{
public $require = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/ReplaceFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

class Replace extends BaseSieveAction
class ReplaceFilterAction extends BaseFilterAction
{
public $require = ['replace'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/SetFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Please refer to https://www.rfc-editor.org/rfc/rfc5229.html
*/
class SetFilterAction extends BaseSieveAction
class SetFilterAction extends BaseFilterAction
{
public $require = ['variables'];

Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/StopFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

class StopFilterAction extends BaseSieveAction
class StopFilterAction extends BaseFilterAction
{
/**
* @return string
Expand Down
2 changes: 1 addition & 1 deletion src/Filters/Actions/VacationFilterAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PhpSieveManager\Filters\Actions;

class VacationFilterAction extends BaseSieveAction
class VacationFilterAction extends BaseFilterAction
{
public $require = ['vacation'];

Expand Down

0 comments on commit d013d04

Please sign in to comment.