Skip to content

Commit

Permalink
Merge pull request #214 from gsteel/PHP-8.2
Browse files Browse the repository at this point in the history
Add support for PHP 8.2
  • Loading branch information
Ocramius authored Oct 14, 2022
2 parents 332b38c + 8cae063 commit edf3832
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 115 deletions.
3 changes: 2 additions & 1 deletion .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ignore_php_platform_requirements": {
"8.1": true
"8.1": false,
"8.2": true
}
}
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"homepage": "https://laminas.dev",
"license": "BSD-3-Clause",
"require": {
"php": "~8.0.0 || ~8.1.0",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"ext-iconv": "*",
"laminas/laminas-loader": "^2.8.0",
"laminas/laminas-mime": "^2.10.0",
Expand All @@ -22,11 +22,11 @@
"laminas/laminas-coding-standard": "~2.4.0",
"laminas/laminas-crypt": "^3.8.0",
"laminas/laminas-db": "^2.15.0",
"laminas/laminas-servicemanager": "^3.16.0",
"phpunit/phpunit": "^9.5.21",
"laminas/laminas-servicemanager": "^3.19",
"phpunit/phpunit": "^9.5.25",
"psalm/plugin-phpunit": "^0.17.0",
"symfony/process": "^6.0.11",
"vimeo/psalm": "^4.26.0"
"vimeo/psalm": "^4.29"
},
"suggest": {
"laminas/laminas-crypt": "^3.8 Crammd5 support in SMTP Auth",
Expand Down
113 changes: 55 additions & 58 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 1 addition & 23 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.28.0@52e96bea381e6cb07a672aefec791a5817694a26">
<files psalm-version="4.29.0@7ec5ffbd5f68ae03782d7fd33fff0c45a69f95b3">
<file src="src/Address.php">
<DocblockTypeContradiction occurrences="2">
<code>! is_string($email)</code>
Expand Down Expand Up @@ -54,12 +54,6 @@
<code>is_object($emailOrAddress)</code>
</RedundantConditionGivenDocblockType>
</file>
<file src="src/ConfigProvider.php">
<MixedArrayOffset occurrences="1"/>
<UndefinedClass occurrences="1">
<code>SmtpPluginManager</code>
</UndefinedClass>
</file>
<file src="src/Header/AbstractAddressList.php">
<DocblockTypeContradiction occurrences="1">
<code>null === $this-&gt;addressList</code>
Expand All @@ -80,15 +74,6 @@
<MixedArgument occurrences="1">
<code>$value</code>
</MixedArgument>
<MixedArrayAccess occurrences="1">
<code>$conversionInfo['errors']</code>
</MixedArrayAccess>
<MixedInferredReturnType occurrences="1">
<code>string</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>$ascii</code>
</MixedReturnStatement>
<RedundantConditionGivenDocblockType occurrences="1">
<code>$format !== HeaderInterface::FORMAT_RAW</code>
</RedundantConditionGivenDocblockType>
Expand Down Expand Up @@ -854,17 +839,10 @@
<MissingReturnType occurrences="1">
<code>validatePlugin</code>
</MissingReturnType>
<MixedArrayOffset occurrences="1"/>
<NonInvariantDocblockPropertyType occurrences="2">
<code>$aliases</code>
<code>$instanceOf</code>
</NonInvariantDocblockPropertyType>
<UndefinedClass occurrences="4">
<code>Crammd5</code>
<code>Login</code>
<code>Plain</code>
<code>\Zend\Mail\Protocol\Smtp</code>
</UndefinedClass>
</file>
<file src="src/Protocol/SmtpPluginManagerFactory.php">
<DeprecatedInterface occurrences="1">
Expand Down
4 changes: 1 addition & 3 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Laminas\Mail;

use Zend\Mail\Protocol\SmtpPluginManager;

class ConfigProvider
{
/**
Expand All @@ -28,7 +26,7 @@ public function getDependencyConfig()
return [
// Legacy Zend Framework aliases
'aliases' => [
SmtpPluginManager::class => Protocol\SmtpPluginManager::class,
'Zend\Mail\Protocol\SmtpPluginManager' => Protocol\SmtpPluginManager::class,
],
'factories' => [
Protocol\SmtpPluginManager::class => Protocol\SmtpPluginManagerFactory::class,
Expand Down
Loading

0 comments on commit edf3832

Please sign in to comment.