Skip to content

Commit

Permalink
Merge pull request #7773 from yu3223/0802_phpstan_remove
Browse files Browse the repository at this point in the history
Dev: Remove the `email` ignore errors.
  • Loading branch information
kenjis authored Aug 4, 2023
2 parents 152a7a1 + 85b9f76 commit 131d140
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 40 deletions.
40 changes: 0 additions & 40 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -836,46 +836,6 @@
'count' => 2,
'path' => __DIR__ . '/system/Debug/Toolbar/Collectors/Views.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:SMTPEnd\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Email/Email.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:appendAttachments\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Email/Email.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:batchBCCSend\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Email/Email.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:buildHeaders\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Email/Email.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:buildMessage\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Email/Email.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:setErrorMessage\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Email/Email.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:unwrapSpecials\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Email/Email.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Email\\\\Email\\:\\:writeHeaders\\(\\) has no return type specified\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Email/Email.php',
];
$ignoreErrors[] = [
'message' => '#^Static property CodeIgniter\\\\Email\\\\Email\\:\\:\\$func_overload \\(bool\\) in isset\\(\\) is not nullable\\.$#',
'count' => 1,
Expand Down
16 changes: 16 additions & 0 deletions system/Email/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,8 @@ public function wordWrap($str, $charlim = null)

/**
* Build final headers
*
* @return void
*/
protected function buildHeaders()
{
Expand All @@ -1077,6 +1079,8 @@ protected function buildHeaders()

/**
* Write Headers as a string
*
* @return void
*/
protected function writeHeaders()
{
Expand All @@ -1103,6 +1107,8 @@ protected function writeHeaders()

/**
* Build Final Body and attachments
*
* @return void
*/
protected function buildMessage()
{
Expand Down Expand Up @@ -1263,6 +1269,8 @@ protected function attachmentsHaveMultipart($type)
* @param string $body Message body to append to
* @param string $boundary Multipart boundary
* @param string|null $multipart When provided, only attachments of this type will be processed
*
* @return void
*/
protected function appendAttachments(&$body, $boundary, $multipart = null)
{
Expand Down Expand Up @@ -1579,6 +1587,8 @@ public function send($autoClear = true)

/**
* Batch Bcc Send. Sends groups of BCCs in batches
*
* @return void
*/
public function batchBCCSend()
{
Expand Down Expand Up @@ -1623,6 +1633,8 @@ public function batchBCCSend()

/**
* Unwrap special elements
*
* @return void
*/
protected function unwrapSpecials()
{
Expand Down Expand Up @@ -1837,6 +1849,8 @@ protected function sendWithSmtp()

/**
* Shortcut to send RSET or QUIT depending on keep-alive
*
* @return void
*/
protected function SMTPEnd()
{
Expand Down Expand Up @@ -2156,6 +2170,8 @@ private function printDebuggerRaw(): string

/**
* @param string $msg
*
* @return void
*/
protected function setErrorMessage($msg)
{
Expand Down

0 comments on commit 131d140

Please sign in to comment.