Skip to content

Commit

Permalink
minor #6156 DX: drop hack for Prophecy incompatibility (keradus)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

DX: drop hack for Prophecy incompatibility

https://github.com/phpspec/prophecy/releases/tag/v1.15.0

follows up #6095

Commits
-------

6cb274a DX: drop hack for Prophecy incompatibility
  • Loading branch information
SpacePossum committed Dec 9, 2021
2 parents 4ab8dc5 + 6cb274a commit 73f051d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"php-cs-fixer/accessible-object": "^1.1",
"php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
"phpspec/prophecy": "^1.10.3",
"phpspec/prophecy": "^1.15",
"phpspec/prophecy-phpunit": "^1.1 || ^2.0",
"phpunit/phpunit": "^8.5.21 || ^9.5",
"phpunitgoodpractices/polyfill": "^1.5",
Expand Down
11 changes: 0 additions & 11 deletions tests/Linter/ProcessLintingResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@
*/
final class ProcessLintingResultTest extends TestCase
{
public static function setUpBeforeClass(): void
{
parent::setUpBeforeClass();

/** @TODO drop me after Prophecy issue is soled: https://github.com/phpspec/prophecy/issues/527 */
$type = (new \ReflectionMethod(\Symfony\Component\Process\Process::class, 'mustRun'))->getReturnType();
if ($type instanceof \ReflectionNamedType && 'static' === $type->getName()) {
static::markTestSkipped('Prophecy cannot handle the static return type.');
}
}

/**
* @doesNotPerformAssertions
*/
Expand Down

0 comments on commit 73f051d

Please sign in to comment.