Skip to content

Commit

Permalink
Merge pull request #89 from localheinz/feature/infer-private-property…
Browse files Browse the repository at this point in the history
…-type-from-constructor

Enhancement: Infer private property type from constructor
  • Loading branch information
localheinz authored Dec 27, 2019
2 parents ebed59b + 830a632 commit 24dc560
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ includes:
- src/extension.neon

parameters:
inferPrivatePropertyTypeFromConstructor: true
level: max
paths:
- src
Expand Down
3 changes: 0 additions & 3 deletions src/Extension/ProphetProphesizeDynamicReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@

class ProphetProphesizeDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
{
/**
* @var string
*/
private $className;

public function __construct(string $className)
Expand Down
6 changes: 0 additions & 6 deletions src/Reflection/ObjectProphecyMethodReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@

class ObjectProphecyMethodReflection implements MethodReflection
{
/**
* @var ClassReflection
*/
private $declaringClass;

/**
* @var string
*/
private $name;

public function __construct(ClassReflection $declaringClass, string $name)
Expand Down

0 comments on commit 24dc560

Please sign in to comment.