Skip to content

Commit

Permalink
Merge pull request #21 from soluble-io/fix/mixed-return-type
Browse files Browse the repository at this point in the history
fix: covariance possible issues
  • Loading branch information
belgattitude committed Jul 10, 2020
2 parents fb6d494 + 4a3490e commit dd18cc6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.1.1 (2020-07-10)

### Fixed

- [Minor] phpdoc covariance issue in NullCache, in [#21](https://github.com/soluble-io/soluble-mediatools/pull/21)
- [Minor] process-exception possible covariance issue when extending, in [#21](https://github.com/soluble-io/soluble-mediatools/pull/21)

### Dev

- [Q&A] Updated phpstan/psalm and few dev deps, in [#21](https://github.com/soluble-io/soluble-mediatools/pull/21)

## 2.1.0 (2019-12-21)

### Added
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,24 @@
},
"require-dev" : {
"captainhook/plugin-composer": "^4.0",
"consistence/coding-standard": "^3.10",
"consistence/coding-standard": "^3.10.1",
"fig/http-message-util": "^1.1.4",
"friendsofphp/php-cs-fixer": "^2.16",
"friendsofphp/php-cs-fixer": "^2.16.4",
"infection/infection": "^0.13 || ^0.14 || ^0.15",
"jangregor/phpstan-prophecy": "^0.6.1",
"jangregor/phpstan-prophecy": "^0.6.2",
"mikey179/vfsstream": "^1.6",
"monolog/monolog": "^1.23 | ^2.0",
"phpspec/prophecy": "^1.9",
"phpstan/phpstan": "^0.12.9",
"phpstan/phpstan-phpunit": "^0.12.6",
"phpstan/phpstan": "^0.12.32",
"phpstan/phpstan-phpunit": "^0.12.11",
"phpstan/phpstan-strict-rules": "^0.12.2",
"phpunit/phpunit": "^7.4 || ^8.0",
"roave/security-advisories": "dev-master",
"slevomat/coding-standard": "^6.0",
"squizlabs/php_codesniffer": "^3.4 || ^3.5",
"symfony/cache": "^4.3",
"vimeo/psalm": "^3.8.5",
"laminas/laminas-servicemanager": "^3.3"
"vimeo/psalm": "^3.12.2",
"laminas/laminas-servicemanager": "^3.4"
},
"config": {
"optimize-autoloader": true,
Expand Down
4 changes: 0 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ parameters:
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: true
ignoreErrors:
# for covariance allowed failures
-
message: '#Return type(.*)RuntimeException(.*)of method(.*)should be covariant#'
path: src/Common/Exception/ProcessException.php
-
message: '#Instanceof between(.*)VideoFilterInterface and (.*)VideoFilterInterface will(.*)evaluate to true.#'
path: src/Video/Filter/VideoFilterChain.php
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Cache/NullCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function get($key, $default = null)
/**
* {@inheritdoc}
*
* @return mixed
* @return iterable
*/
public function getMultiple($keys, $default = null)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Common/Exception/ProcessExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

namespace Soluble\MediaTools\Common\Exception;

use Symfony\Component\Process\Exception as SymfonyProcessException;
use Symfony\Component\Process\Exception as SPException;
use Symfony\Component\Process\Process;

interface ProcessExceptionInterface extends ExceptionInterface
{
public function getProcess(): Process;

/**
* @return SymfonyProcessException\ProcessFailedException|SymfonyProcessException\ProcessSignaledException|SymfonyProcessException\ProcessTimedOutException
* @return SPException\RuntimeException|SPException\ProcessFailedException|SPException\ProcessSignaledException|SPException\ProcessTimedOutException
*/
public function getSymfonyProcessRuntimeException(): SymfonyProcessException\RuntimeException;
public function getSymfonyProcessRuntimeException(): SPException\RuntimeException;
}

0 comments on commit dd18cc6

Please sign in to comment.