Skip to content

Commit

Permalink
Fix a few issues (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored May 21, 2017
1 parent 26691c0 commit 32d327e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 50 deletions.

This file was deleted.

4 changes: 2 additions & 2 deletions humbug.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
],
"excludes": [
"fixtures",
"src/deep_clone.php",
"src/Bridge",
"src/FileLocator/DefaultFileLocator.php",
"src/FixtureBuilder/Denormalizer/Fixture/Chainable/RangeNameDenormalizer.php",
"src/functions.php",
"src/Generator/Resolver/Parameter/Chainable/RecursiveParameterResolver.php",
"tests",
"vendor"
]
},
"timeout": 10,
"logs": {
"text": "humbuglog.txt"
"text": "dist/humbuglog.txt"
}
}
10 changes: 10 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
parameters:
excludes_analyse:
- %rootDir%/../../../../../fixtures/Bridge
- %rootDir%/../../../../../src/Bridge
ignoreErrors:
# Prophecy
- '#Call to an undefined method Prophecy\\Prophecy\\ObjectProphecy::[a-zA-Z0-9_]+\(\)#'
- '#Access to an undefined property Prophecy\\Prophecy\\ObjectProphecy::\$[a-zA-Z0-9_]+#'

# False positives
2 changes: 1 addition & 1 deletion src/Definition/Value/DynamicArrayValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
final class DynamicArrayValue implements ValueInterface
{
/**
* @var string|ValueInterface
* @var int|ValueInterface
*/
private $quantifier;

Expand Down
4 changes: 2 additions & 2 deletions src/Definition/Value/OptionalValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
final class OptionalValue implements ValueInterface
{
/**
* @var string|ValueInterface
* @var int|ValueInterface
*/
private $quantifier;

Expand All @@ -37,7 +37,7 @@ final class OptionalValue implements ValueInterface
private $secondMember;

/**
* @param int|ValueInterface $quantifier
* @param int|string|ValueInterface $quantifier
* @param string|ValueInterface $firstMember
* @param string|ValueInterface|null $secondMember
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function denormalize(
FlagParserInterface $parser,
array $unparsedMethod
): MethodCallInterface {
/** @var string $method */
/** @var string|bool $method */
$method = key($unparsedMethod);

if (false === $method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ final class LegacyConstructorDenormalizer implements ConstructorDenormalizerInte
use IsAServiceTrait;

/**
* @var ConstructorDenormalizer
* @var ConstructorDenormalizerInterface
*/
private $constructorDenormalizer;

/**
* @var ConstructorDenormalizer
* @var ConstructorDenormalizerInterface
*/
private $factoryDenormalizer;

Expand Down

0 comments on commit 32d327e

Please sign in to comment.