-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from gsteel/get-messages
qa: psalm improvements
- Loading branch information
Showing
19 changed files
with
349 additions
and
425 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
/.coveralls.yml export-ignore | ||
/.gitattributes export-ignore | ||
/.github/ export-ignore | ||
/.gitignore export-ignore | ||
/docs/ export-ignore | ||
/test/ export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.laminas-ci.json export-ignore | ||
/.psr-container.php.stub export-ignore | ||
/mkdocs.yml export-ignore | ||
/phpcs.xml export-ignore | ||
/phpcs.xml.dist export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/test/ export-ignore | ||
/psalm-baseline.xml export-ignore | ||
/psalm.xml.dist export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* File named as .stub to avoid duplicate declaration of the interface in consuming projects | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Psr\Container { | ||
/** | ||
* Provides automatic type inference for Psalm when retrieving a service from a container using a FQCN | ||
*/ | ||
interface ContainerInterface | ||
{ | ||
/** @param string|class-string $id */ | ||
public function has(string $id): bool; | ||
|
||
/** | ||
* @template T of object | ||
* @psalm-param string|class-string<T> $id | ||
* @psalm-return ($id is class-string ? T : mixed) | ||
*/ | ||
public function get(string $id): object; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.