Skip to content

Commit

Permalink
Merge pull request #85 from gromson/hotfix/psalm-return
Browse files Browse the repository at this point in the history
Use `@psalm-return` annotations together with `@return` to improve compatibility with PHPStan static analysis
  • Loading branch information
Ocramius authored Feb 1, 2023
2 parents c232916 + 598c120 commit 01c56c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public function __invoke()
/**
* Return dependency mappings for this component.
*
* @return ServiceManagerConfigurationType
* @psalm-return ServiceManagerConfigurationType
* @return array
*/
public function getDependencyConfig()
{
Expand Down
3 changes: 2 additions & 1 deletion src/InputFilterProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ interface InputFilterProviderInterface
* Should return an array specification compatible with
* {@link Factory::createInputFilter()}.
*
* @return InputFilterSpecification|CollectionSpecification
* @psalm-return InputFilterSpecification|CollectionSpecification
* @return array
*/
public function getInputFilterSpecification();
}
3 changes: 2 additions & 1 deletion src/InputProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ interface InputProviderInterface
* Should return an array specification compatible with
* {@link Factory::createInput()}.
*
* @return InputSpecification
* @psalm-return InputSpecification
* @return array
*/
public function getInputSpecification();
}

0 comments on commit 01c56c1

Please sign in to comment.