Skip to content

Commit

Permalink
update php and pimcore, fix deprecations (#57)
Browse files Browse the repository at this point in the history
* update php and pimcore, fix deprecations

* Apply php-cs-fixer changes

* update php and pimcore, fix deprecations
  • Loading branch information
alexz707 authored Jan 20, 2025
1 parent 32b0ad4 commit f75aff0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 100 deletions.
94 changes: 0 additions & 94 deletions .github/workflows/codeception.yaml

This file was deleted.

7 changes: 5 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
parameters:
level: 6
reportUnmatchedIgnoredErrors: false
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
ignoreErrors:
-
identifier: missingType.iterableValue
-
identifier: missingType.generics
paths:
- src
bootstrapFiles:
Expand Down
2 changes: 1 addition & 1 deletion src/Document/Newsletter/SendingParamContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SendingParamContainer
* SendingParamContainer constructor.
*
*/
public function __construct(string $email, array $params = null)
public function __construct(string $email, ?array $params = null)
{
$this->email = $email;
$this->params = $params;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Document/Newsletter/Dao.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Dao extends Model\Document\Email\Dao
*
* @throws Model\Exception\NotFoundException
*/
public function getById(int $id = null): void
public function getById(?int $id = null): void
{
if ($id != null) {
$this->model->setId($id);
Expand Down
4 changes: 2 additions & 2 deletions src/Tool/Newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public function __construct(string $classId)
*/
public static function prepareMail(
NewsletterDocument $newsletterDocument,
SendingParamContainer $sendingContainer = null,
string $hostUrl = null
?SendingParamContainer $sendingContainer = null,
?string $hostUrl = null
): Mail {
$mail = new Mail();
$mail->setIgnoreDebugMode(true);
Expand Down

0 comments on commit f75aff0

Please sign in to comment.