Skip to content

Commit 85b9f76

Browse files
committed
Dev: Remove the email ignore errors.
1 parent bfbd4f9 commit 85b9f76

File tree

2 files changed

+16
-40
lines changed

2 files changed

+16
-40
lines changed

phpstan-baseline.php

-40
Original file line numberDiff line numberDiff line change
@@ -836,46 +836,6 @@
836836
'count' => 2,
837837
'path' => __DIR__ . '/system/Debug/Toolbar/Collectors/Views.php',
838838
];
839-
$ignoreErrors[] = [
840-
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:SMTPEnd\\(\\) has no return type specified\\.$#',
841-
'count' => 1,
842-
'path' => __DIR__ . '/system/Email/Email.php',
843-
];
844-
$ignoreErrors[] = [
845-
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:appendAttachments\\(\\) has no return type specified\\.$#',
846-
'count' => 1,
847-
'path' => __DIR__ . '/system/Email/Email.php',
848-
];
849-
$ignoreErrors[] = [
850-
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:batchBCCSend\\(\\) has no return type specified\\.$#',
851-
'count' => 1,
852-
'path' => __DIR__ . '/system/Email/Email.php',
853-
];
854-
$ignoreErrors[] = [
855-
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:buildHeaders\\(\\) has no return type specified\\.$#',
856-
'count' => 1,
857-
'path' => __DIR__ . '/system/Email/Email.php',
858-
];
859-
$ignoreErrors[] = [
860-
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:buildMessage\\(\\) has no return type specified\\.$#',
861-
'count' => 1,
862-
'path' => __DIR__ . '/system/Email/Email.php',
863-
];
864-
$ignoreErrors[] = [
865-
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:setErrorMessage\\(\\) has no return type specified\\.$#',
866-
'count' => 1,
867-
'path' => __DIR__ . '/system/Email/Email.php',
868-
];
869-
$ignoreErrors[] = [
870-
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:unwrapSpecials\\(\\) has no return type specified\\.$#',
871-
'count' => 1,
872-
'path' => __DIR__ . '/system/Email/Email.php',
873-
];
874-
$ignoreErrors[] = [
875-
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:writeHeaders\\(\\) has no return type specified\\.$#',
876-
'count' => 1,
877-
'path' => __DIR__ . '/system/Email/Email.php',
878-
];
879839
$ignoreErrors[] = [
880840
'message' => '#^Static property CodeIgniter\\\\Email\\\\Email\\:\\:\\$func_overload \\(bool\\) in isset\\(\\) is not nullable\\.$#',
881841
'count' => 1,

system/Email/Email.php

+16
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,8 @@ public function wordWrap($str, $charlim = null)
10641064

10651065
/**
10661066
* Build final headers
1067+
*
1068+
* @return void
10671069
*/
10681070
protected function buildHeaders()
10691071
{
@@ -1077,6 +1079,8 @@ protected function buildHeaders()
10771079

10781080
/**
10791081
* Write Headers as a string
1082+
*
1083+
* @return void
10801084
*/
10811085
protected function writeHeaders()
10821086
{
@@ -1103,6 +1107,8 @@ protected function writeHeaders()
11031107

11041108
/**
11051109
* Build Final Body and attachments
1110+
*
1111+
* @return void
11061112
*/
11071113
protected function buildMessage()
11081114
{
@@ -1263,6 +1269,8 @@ protected function attachmentsHaveMultipart($type)
12631269
* @param string $body Message body to append to
12641270
* @param string $boundary Multipart boundary
12651271
* @param string|null $multipart When provided, only attachments of this type will be processed
1272+
*
1273+
* @return void
12661274
*/
12671275
protected function appendAttachments(&$body, $boundary, $multipart = null)
12681276
{
@@ -1579,6 +1587,8 @@ public function send($autoClear = true)
15791587

15801588
/**
15811589
* Batch Bcc Send. Sends groups of BCCs in batches
1590+
*
1591+
* @return void
15821592
*/
15831593
public function batchBCCSend()
15841594
{
@@ -1623,6 +1633,8 @@ public function batchBCCSend()
16231633

16241634
/**
16251635
* Unwrap special elements
1636+
*
1637+
* @return void
16261638
*/
16271639
protected function unwrapSpecials()
16281640
{
@@ -1837,6 +1849,8 @@ protected function sendWithSmtp()
18371849

18381850
/**
18391851
* Shortcut to send RSET or QUIT depending on keep-alive
1852+
*
1853+
* @return void
18401854
*/
18411855
protected function SMTPEnd()
18421856
{
@@ -2156,6 +2170,8 @@ private function printDebuggerRaw(): string
21562170

21572171
/**
21582172
* @param string $msg
2173+
*
2174+
* @return void
21592175
*/
21602176
protected function setErrorMessage($msg)
21612177
{

0 commit comments

Comments
 (0)