-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Static Analysis Improvements & General Maintenance
- Removes irrelevant dot files - Update export-ignores - Stop ignoring platform requirements on PHP 8.1 - Update Psalm and Laminas Coding Standard to most recent versions - Solve nearly all psalm issues (Except 2) 💪 - Various other minor improvements Signed-off-by: George Steel <[email protected]>
- Loading branch information
Showing
24 changed files
with
541 additions
and
530 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,10 +1,14 @@ | ||
/.coveralls.yml export-ignore | ||
/.gitattributes export-ignore | ||
/.github/ export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/docs/ export-ignore | ||
/mkdocs.yml export-ignore | ||
/phpcs.xml export-ignore | ||
/psalm.xml export-ignore | ||
/psalm-baseline.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/test/ export-ignore | ||
/.psr-container.php.stub | ||
/renovate.json | ||
/.laminas-ci.json | ||
/TODO.md |
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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
{ | ||
"ignore_php_platform_requirements": { | ||
"8.1": true | ||
} | ||
} |
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,24 @@ | ||
<?php | ||
|
||
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 | ||
* @return bool | ||
*/ | ||
public function has(string $id); | ||
|
||
/** | ||
* @template T | ||
* @psalm-param string|class-string<T> $id | ||
* @psalm-return ($id is class-string ? T : mixed) | ||
*/ | ||
public function get(string $id); | ||
} | ||
} |
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
Oops, something went wrong.